Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added password validation for adding new user.
  • Loading branch information
notrinos committed Aug 22, 2022
1 parent 8c14c47 commit e61e76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/users.php
Expand Up @@ -31,7 +31,7 @@ function can_process($new) {
set_focus('user_id');
return false;
}
if (!$new && ($_POST['password'] != '')) {
if ($new || (!$new && ($_POST['password'] != ''))) {
if (strlen($_POST['password']) < 4) {
display_error( _('The password entered must be at least 4 characters long.'));
set_focus('password');
Expand Down

0 comments on commit e61e76b

Please sign in to comment.