From e61e76b44c6a2b28a4a648a06ef34f65c376ec1e Mon Sep 17 00:00:00 2001 From: notrinos Date: Mon, 22 Aug 2022 14:46:05 +0700 Subject: [PATCH] added password validation for adding new user. --- admin/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/users.php b/admin/users.php index 52ec55f..0dc548f 100644 --- a/admin/users.php +++ b/admin/users.php @@ -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');