PUBLIE : _LOGIN_TROP_COURT

**SPIP**

# Article validé

L’article "**\_LOGIN\_TROP_COURT**
(https://www.spip.net/en_article6572.html)" vient d’être publié par
b_b.

* * *

## \_LOGIN\_TROP_COURT

mardi 26 mai 2020 , par [jack](.././?page=auteur&id_auteur=593&)

This constant is used to define the minimum size allowed for user logins.
By default, its value is `4`, which forces the minimum login size to 4
characters.

As for all Variables for customising SPIP
(https://www.spip.net/ecrire/?exec=article&id_article=2145) of SPIP, it is
possible to customize the value of this constant, in your
`config/mes_options.php` (see the article dedicated to it
(https://www.spip.net/ecrire/?exec=article&id_article=4909)).

For example, you will allow users to use logins of at least 3 characters by
setting the value of this constant to 3.

    // allow authors to choose a 3-character login

    define
    
     (http://www.php.net/define)
    
    (

    '_LOGIN_TROP_COURT'

    ,

    3

    )

    ;

**P.-S.**
You can also control the minimum length of passwords with
\_PASS\_LONGUEUR_MINI
(https://www.spip.net/ecrire/?exec=article&id_article=6571).

— Envoyé par SPIP (https://www.spip.net/)

rubon199.jpg