Change la taille max authorisé des login alternC
pour permettre d'avoir au moins quelques users mysql
This commit is contained in:
parent
c8b0aa3fec
commit
793fd1ead0
|
@ -326,8 +326,11 @@ class m_admin {
|
||||||
$err->raise("admin", _("Login can only contains characters a-z and 0-9"));
|
$err->raise("admin", _("Login can only contains characters a-z and 0-9"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (strlen($login) > 16) {
|
if (strlen($login) > 14) {
|
||||||
$err->raise("admin",_("The login is too long (16 chars max)"));
|
// Not an arbitrary value : MySQL user names can be up to 16 characters long
|
||||||
|
// If we want to allow people to create a few mysql_user (and we want to!)
|
||||||
|
// we have to limit the login lenght
|
||||||
|
$err->raise("admin",_("The login is too long (14 chars max)"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Some login are not allowed...
|
// Some login are not allowed...
|
||||||
|
|
Loading…
Reference in New Issue