mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 17:40:31 +00:00
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])"
|
||||
if config.config_password_special:
|
||||
verify += r"(?=.*?[^A-Za-z\s0-9])"
|
||||
match = re.match(verify, check_password)
|
||||
match = re.match(verify, unidecode.unidecode(check_password))
|
||||
if not match:
|
||||
raise Exception(_("Password doesn't comply with password validation rules"))
|
||||
return check_password
|
||||
|
Loading…
Reference in New Issue
Block a user