|
|
@@ -100,7 +100,9 @@ if (!empty($_POST['save'])) {
|
|
|
if ((!empty($_POST['v_password'])) && (empty($_SESSION['error_msg']))) {
|
|
|
// Check password length
|
|
|
$pw_len = strlen($_POST['v_password']);
|
|
|
- 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 (!validate_password($_POST['v_password'])) {
|
|
|
+ $_SESSION['error_msg'] = __('Password does not match the minimum requirements');
|
|
|
+ }
|
|
|
if (empty($_SESSION['error_msg'])) {
|
|
|
$v_password = tempnam("/tmp","vst");
|
|
|
$fp = fopen($v_password, "w");
|