mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-06 20:10:56 +00:00
fixes triggered by tox
This commit is contained in:
parent
30e2ab490e
commit
9af15e6656
2 changed files with 9 additions and 9 deletions
|
@ -96,7 +96,7 @@ class BaseAuth:
|
|||
h.update(salt.encode())
|
||||
h.update(login.encode())
|
||||
h.update(password.encode())
|
||||
return h.digest()
|
||||
return str(h.digest())
|
||||
|
||||
def get_external_login(self, environ: types.WSGIEnviron) -> Union[
|
||||
Tuple[()], Tuple[str, str]]:
|
||||
|
@ -155,8 +155,8 @@ class BaseAuth:
|
|||
digest = self._cache_digest(login, password, str(time_ns))
|
||||
if result == "":
|
||||
result = self._login(login, password)
|
||||
if result is not "":
|
||||
if digest is "":
|
||||
if result != "":
|
||||
if digest == "":
|
||||
# successful login, but expired, digest must be recalculated
|
||||
digest = self._cache_digest(login, password, str(time_ns))
|
||||
# store successful login in cache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue