You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closeshestiacp#1032, hestiacp#1031 and hestiacp#1027
Enforces minumum password length of 8 char and specific format
Added "visiual indicator for requirements password"
Enforces minum length of name same as /add/user/
Added checkbox to block copie email to notify box
Css files in header Synced cache method with .js files
Copy file name to clipboardExpand all lines: web/add/user/index.php
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,8 +45,7 @@
45
45
46
46
// Check password length
47
47
if (empty($_SESSION['error_msg'])) {
48
-
$pw_len = strlen($_POST['v_password']);
49
-
if ($pw_len < 6 ) $_SESSION['error_msg'] = __('Password is too short.',$error_msg);
48
+
if (!preg_match('/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$/', $_POST['v_password'])) { $_SESSION['error_msg'] = __('Password does not match the minimum requirements'); }
if (!preg_match('/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$/', $_POST['v_password'])) { $_SESSION['error_msg'] = __('Password does not match the minimum requirements'); }
0 commit comments