From 2c0669046c17b88b0fc43c2e94c1a55a2f43d28a Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 17 Sep 2017 14:03:48 +0200 Subject: [PATCH] Use and instead of & Cosmetic change --- radicale/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/auth.py b/radicale/auth.py index ec968330..32f6d1df 100644 --- a/radicale/auth.py +++ b/radicale/auth.py @@ -227,7 +227,7 @@ class Auth(BaseAuth): # timing attacks, see #591. login_ok = hmac.compare_digest(login, user) password_ok = self.verify(hash_value, password) - if login_ok & password_ok: + if login_ok and password_ok: return True except ValueError as e: raise RuntimeError("Invalid htpasswd file %r: %s" %