mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
passlib: use hash() instead of deprecated encrypt()
This commit is contained in:
parent
94bb4fbdae
commit
1a26df865c
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ class Auth(auth.BaseAuth):
|
|||
# A call to `encrypt` raises passlib.exc.MissingBackendError with a
|
||||
# good error message if bcrypt backend is not available. Trigger
|
||||
# this here.
|
||||
bcrypt.encrypt("test-bcrypt-backend")
|
||||
bcrypt.hash("test-bcrypt-backend")
|
||||
self.verify = functools.partial(self._bcrypt, bcrypt)
|
||||
elif self.encryption == "crypt":
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue