mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: Correct password length message.
Wrong config option was used to display the minimum length error msg. (username_min_len instead of passwd_min_len) Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
parent
9e9ba15813
commit
fd3022ff6c
1 changed files with 2 additions and 5 deletions
|
@ -56,12 +56,9 @@ def invalid_password(
|
||||||
) -> None:
|
) -> None:
|
||||||
if P:
|
if P:
|
||||||
if not util.valid_password(P):
|
if not util.valid_password(P):
|
||||||
username_min_len = config.getint("options", "username_min_len")
|
passwd_min_len = config.getint("options", "passwd_min_len")
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
[
|
[_("Your password must be at least %s characters.") % (passwd_min_len)]
|
||||||
_("Your password must be at least %s characters.")
|
|
||||||
% (username_min_len)
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
elif not C:
|
elif not C:
|
||||||
raise ValidationError(["Please confirm your new password."])
|
raise ValidationError(["Please confirm your new password."])
|
||||||
|
|
Loading…
Add table
Reference in a new issue