mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fix password validation min length message
When relying on static config instead of an explicitly set minLength then this message would show without the value, like "it must be or more characters long".
This commit is contained in:
parent
116ea12783
commit
db0e6f7104
@ -236,7 +236,7 @@ class PasswordValidator
|
|||||||
$error = _t(
|
$error = _t(
|
||||||
__CLASS__ . '.TOOSHORT',
|
__CLASS__ . '.TOOSHORT',
|
||||||
'Password is too short, it must be {minimum} or more characters long',
|
'Password is too short, it must be {minimum} or more characters long',
|
||||||
['minimum' => $this->minLength]
|
['minimum' => $minLength]
|
||||||
);
|
);
|
||||||
|
|
||||||
$valid->addError($error, 'bad', 'TOO_SHORT');
|
$valid->addError($error, 'bad', 'TOO_SHORT');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user