1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-18 00:57:39 +00:00

Bugfix error message missing custom read status column

Bugfix password validation
This commit is contained in:
Ozzieisaacs
2022-06-17 14:24:23 +02:00
parent 29fd4ae4a2
commit c5fc30a1be
3 changed files with 7 additions and 5 deletions

View File

@@ -665,7 +665,7 @@ def valid_password(check_password):
if config.config_password_policy:
verify = ""
if config.config_password_min_length > 0:
verify += "^(?=\S{" + str(config.config_password_min_length) + ",}$)"
verify += "^(?=.{" + str(config.config_password_min_length) + ",}$)"
if config.config_password_number:
verify += "(?=.*?\d)"
if config.config_password_lower: