Skip to content

Commit

Permalink
Use and instead of &
Browse files Browse the repository at this point in the history
Cosmetic change
  • Loading branch information
Unrud committed Sep 17, 2017
1 parent a9e5e00 commit 2c06690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radicale/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def is_authenticated(self, user, password):
# 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" %
Expand Down

0 comments on commit 2c06690

Please sign in to comment.