mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 21:57:43 +03:00
forgotten bcrypt pattern extension
This commit is contained in:
parent
0f67336987
commit
3a13ffbc51
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class Auth(auth.BaseAuth):
|
||||||
htpasswd_ok = False
|
htpasswd_ok = False
|
||||||
skip = True
|
skip = True
|
||||||
else:
|
else:
|
||||||
if digest.startswith("$2y$", 0, 4) and len(digest) == 60:
|
if re.match(r"^\$2(a|b|x|y)?\$", digest) and len(digest) == 60:
|
||||||
if init is True:
|
if init is True:
|
||||||
bcrypt_use += 1
|
bcrypt_use += 1
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue