fix: password length when changed user password
This commit is contained in:
parent
6248ea0a62
commit
e770d6a972
1 changed files with 2 additions and 2 deletions
|
@ -677,8 +677,8 @@ function changeUserPassword($args)
|
||||||
$confirmPassword = $args['confirmPassword'];
|
$confirmPassword = $args['confirmPassword'];
|
||||||
|
|
||||||
// Password length
|
// Password length
|
||||||
if (Text::length($newPassword) < 6) {
|
if (Text::length($newPassword) < PASSWORD_LENGTH) {
|
||||||
Alert::set($L->g('Password must be at least 6 characters long'), ALERT_STATUS_FAIL);
|
Alert::set($L->g('Password must be at least ' . PASSWORD_LENGTH . ' characters long'), ALERT_STATUS_FAIL);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue