Fixed recognition of capital umlauts
This commit is contained in:
parent
97380b4b3f
commit
f987fb0aba
|
@ -701,7 +701,7 @@ def valid_password(check_password):
|
||||||
verify += r"(?=.*?[A-Z])"
|
verify += r"(?=.*?[A-Z])"
|
||||||
if config.config_password_special:
|
if config.config_password_special:
|
||||||
verify += r"(?=.*?[^A-Za-z\s0-9])"
|
verify += r"(?=.*?[^A-Za-z\s0-9])"
|
||||||
match = re.match(verify, check_password)
|
match = re.match(verify, unidecode.unidecode(check_password))
|
||||||
if not match:
|
if not match:
|
||||||
raise Exception(_("Password doesn't comply with password validation rules"))
|
raise Exception(_("Password doesn't comply with password validation rules"))
|
||||||
return check_password
|
return check_password
|
||||||
|
|
Loading…
Reference in New Issue
Block a user