mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
If needed instead of an elif.
This commit is contained in:
1 parent
3ab7d05bf3
commit
2bd413e657
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user