mirror of
https://github.com/wassname/flask-security.git
synced 2026-08-15 12:25:00 +08:00
Polish
This commit is contained in:
@@ -64,11 +64,14 @@ class ConfirmationExpiredError(Exception):
|
||||
"""Raised when a user attempts to confirm their email but their token
|
||||
has expired
|
||||
"""
|
||||
def __init__(self, msg, user=None):
|
||||
super(ConfirmationExpiredError, self).__init__(msg)
|
||||
def __init__(self, user=None):
|
||||
super(ConfirmationExpiredError, self).__init__()
|
||||
self.user = user
|
||||
|
||||
|
||||
class ConfirmationRequiredError(Exception):
|
||||
"""Raised when a user attempts to login but requires confirmation
|
||||
"""
|
||||
def __init__(self, user=None):
|
||||
super(ConfirmationRequiredError, self).__init__()
|
||||
self.user = user
|
||||
|
||||
Reference in New Issue
Block a user