From 4cd1067faf3df14dbbe7eb6de2bd7693d5cd829a 2011-11-19 08:07:38 From: Fernando Perez Date: 2011-11-19 08:07:38 Subject: [PATCH] Remove unnecessary check on password salt length. --- diff --git a/IPython/lib/security.py b/IPython/lib/security.py index fb3d712..ef7d3af 100644 --- a/IPython/lib/security.py +++ b/IPython/lib/security.py @@ -109,7 +109,7 @@ def passwd_check(hashed_passphrase, passphrase): except ValueError: return False - if len(pw_digest) == 0 or len(salt) != salt_len: + if len(pw_digest) == 0: return False h.update(passphrase + salt)