diff --git a/html/css/style-classic7.css b/html/css/style-classic7.css index 86376d701..9df3f72ee 100644 --- a/html/css/style-classic7.css +++ b/html/css/style-classic7.css @@ -3393,6 +3393,6 @@ li.li-active { */ #info_passid { position:absolute; - background-color: yellow; + background-color: rgba(255,160,122,0.58); color:red; } \ No newline at end of file diff --git a/include/user.inc.php b/include/user.inc.php index dddccd752..c9d7bfa07 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -48,9 +48,9 @@ if ( isset ($_POST["ADD"]) ) $new_user->login=$login; $new_user->email=$http->post('EMAIL',"string",''); - if ( trim($login)=="") + if ( trim($login)=="" || strlen($login)<5) { - alert(_("Le login ne peut pas être vide")); + alert(_("Le login ne peut pas être vide et avoir au moins 5 lettres")); }elseif (count($a_result['msg']) > 0){ // password too weak $msg=''._("Mot de passe inchangé").''; @@ -182,6 +182,7 @@ if ( isset($_REQUEST['det']) && $sbaction=="")