mirror of
https://github.com/wassname/flask-security.git
synced 2026-09-09 11:22:35 +08:00
Use default values for encrypt_password and verify_password
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user