X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fusers.php;h=765997cb57899acda6a8040cda23a0ef42f2d108;hb=2a839495da2c19e1fad93019cae5a49e37687964;hp=8eeb575c95656500e49bde3cc9bcd7be151bc0c8;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git diff --git a/admin/users.php b/admin/users.php index 8eeb575c..765997cb 100644 --- a/admin/users.php +++ b/admin/users.php @@ -45,6 +45,7 @@ function can_process() if (strlen($_POST['user_id']) < 4) { display_error( _("The user login entered must be at least 4 characters long.")); + set_focus('user_id'); return false; } @@ -53,12 +54,14 @@ function can_process() if (strlen($_POST['password']) < 4) { display_error( _("The password entered must be at least 4 characters long.")); + set_focus('password'); return false; } if (strstr($_POST['password'], $_POST['user_id']) != false) { display_error( _("The password cannot contain the user login.")); + set_focus('password'); return false; } }