mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-13 01:00:42 +08:00
Clean up
This commit is contained in:
@@ -66,11 +66,6 @@ class ConfirmationError(SecurityError):
|
||||
"""
|
||||
|
||||
|
||||
class ConfirmationRequiredError(SecurityError):
|
||||
"""Raised when a user attempts to login but requires confirmation
|
||||
"""
|
||||
|
||||
|
||||
class ResetPasswordError(SecurityError):
|
||||
"""Raised when a password reset error occurs
|
||||
"""
|
||||
|
||||
@@ -112,7 +112,7 @@ def authenticate():
|
||||
|
||||
return redirect(get_post_login_redirect())
|
||||
|
||||
raise BadCredentialsError('Inactive user')
|
||||
raise BadCredentialsError('Account is disabled')
|
||||
|
||||
except BadCredentialsError, e:
|
||||
msg = str(e)
|
||||
|
||||
Reference in New Issue
Block a user