mirror of
https://github.com/wassname/flask-security.git
synced 2026-08-15 12:25:00 +08:00
Refactor some methods
This commit is contained in:
@@ -67,3 +67,8 @@ class ConfirmationExpiredError(Exception):
|
||||
def __init__(self, msg, user=None):
|
||||
super(ConfirmationExpiredError, self).__init__(msg)
|
||||
self.user = user
|
||||
|
||||
|
||||
class ConfirmationRequiredError(Exception):
|
||||
"""Raised when a user attempts to login but requires confirmation
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user