mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
If needed instead of an elif.
This commit is contained in:
parent
3ab7d05bf3
commit
2bd413e657
@ -28,7 +28,7 @@ def check_credentials(username, passphrase):
|
||||
|
||||
u = cfg.users[username]
|
||||
|
||||
elif u is None:
|
||||
if u is None:
|
||||
# hash the password whether the user exists, to foil timing
|
||||
# side-channel attacks
|
||||
hashlib.md5(passphrase).hexdigest()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user