diff options
author | Tom Galloway <github@tomgalloway.co.uk> | 2013-04-24 09:29:58 +0100 |
---|---|---|
committer | Tom Galloway <github@tomgalloway.co.uk> | 2013-04-24 09:29:58 +0100 |
commit | 2bd413e657579f9369b34220315089393b4a3cb0 (patch) | |
tree | d86ad33763f64668172dd1c9e63ac398f9847303 /modules/installed/lib/auth.py | |
parent | 3ab7d05bf32161773066a0f74c4d6fcd0fb53dd2 (diff) |
If needed instead of an elif.
Diffstat (limited to 'modules/installed/lib/auth.py')
-rw-r--r-- | modules/installed/lib/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/installed/lib/auth.py b/modules/installed/lib/auth.py index 4aa5be5..6e67fb8 100644 --- a/modules/installed/lib/auth.py +++ b/modules/installed/lib/auth.py @@ -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() |