mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
make flake8 happy
This commit is contained in:
parent
438d5f1735
commit
1593742ce2
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class Auth(auth.BaseAuth):
|
||||||
return hmac.compare_digest(hash_value.encode(), password.encode())
|
return hmac.compare_digest(hash_value.encode(), password.encode())
|
||||||
|
|
||||||
def _bcrypt(self, bcrypt: Any, hash_value: str, password: str) -> bool:
|
def _bcrypt(self, bcrypt: Any, hash_value: str, password: str) -> bool:
|
||||||
return bcrypt.checkpw(password = password.encode('utf-8'), hashed_password = hash_value.encode())
|
return bcrypt.checkpw(password=password.encode('utf-8'), hashed_password=hash_value.encode())
|
||||||
|
|
||||||
def _md5apr1(self, hash_value: str, password: str) -> bool:
|
def _md5apr1(self, hash_value: str, password: str) -> bool:
|
||||||
return apr_md5_crypt.verify(password, hash_value.strip())
|
return apr_md5_crypt.verify(password, hash_value.strip())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue