Use default values for encrypt_password and verify_password

This commit is contained in:
Matt Wright
2012-08-20 17:44:20 -04:00
parent 3a07970216
commit fa4668aa3f
5 changed files with 12 additions and 14 deletions
+1 -3
View File
@@ -95,9 +95,7 @@ class UserDatastore(object):
pw = kwargs['password']
if not pwd_context.identify(pw):
pwd_hash = utils.encrypt_password(pw,
salt=_security.password_salt,
use_hmac=_security.password_hmac)
pwd_hash = utils.encrypt_password(pw)
kwargs['password'] = pwd_hash
return kwargs