mirror of
https://github.com/wassname/flask-security.git
synced 2026-09-10 12:01:01 +08:00
Use default values for encrypt_password and verify_password
This commit is contained in:
@@ -378,9 +378,7 @@ class AuthenticationProvider(object):
|
||||
raise exceptions.ConfirmationError('Email requires confirmation.', user)
|
||||
|
||||
# compare passwords
|
||||
if verify_password(password, user.password,
|
||||
salt=_security.password_salt,
|
||||
use_hmac=_security.password_hmac):
|
||||
if verify_password(password, user.password):
|
||||
return user
|
||||
|
||||
# bad match
|
||||
|
||||
Reference in New Issue
Block a user