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=="")
+ @@ -192,9 +193,9 @@ if ( isset($_REQUEST['det']) && $sbaction=="")
- +
@@ -218,8 +219,14 @@ echo HtmlInput::button_action(_("Fermer"), "$('create_user').style.display='none $('input_password').setStyle({border:"red solid 2px"}); return false; } + if ($F('input_login').length < 5) { + smoke.alert(''); + $('input_password').setStyle({border:"red solid 2px"}); + return false; + } return true; } +
@@ -253,7 +260,7 @@ if ( !empty ($a_user) ) { echo ''; echo _('Cherche').Icon_Action::infobulle(22); - echo HtmlInput::filter_table("user", "0,1,2,5","1"); + echo HtmlInput::filter_table("user", "0,1,2,3,5,6","1"); echo ''; echo ''; echo ''; diff --git a/include/user_detail.inc.php b/include/user_detail.inc.php index c84f5602f..3a3c61c8d 100644 --- a/include/user_detail.inc.php +++ b/include/user_detail.inc.php @@ -82,7 +82,7 @@ $it_pass->value="";
input();?> - +