mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-08 00:10:54 +08:00
Clean up
This commit is contained in:
@@ -15,7 +15,7 @@ from itsdangerous import BadSignature, SignatureExpired
|
||||
from flask import current_app as app, request, url_for
|
||||
from werkzeug.local import LocalProxy
|
||||
|
||||
from .exceptions import UserNotFoundError, ConfirmationError
|
||||
from .exceptions import ConfirmationError
|
||||
from .utils import send_mail, get_max_age, md5, get_message
|
||||
from .signals import user_confirmed, confirm_instructions_sent
|
||||
|
||||
@@ -42,8 +42,6 @@ def send_confirmation_instructions(user, token):
|
||||
|
||||
confirm_instructions_sent.send(user, app=app._get_current_object())
|
||||
|
||||
return True
|
||||
|
||||
|
||||
def generate_confirmation_token(user):
|
||||
"""Generates a unique confirmation token for the specified user.
|
||||
|
||||
@@ -43,8 +43,6 @@ def send_reset_password_instructions(user, reset_token):
|
||||
reset_instructions_sent.send(dict(user=user, token=reset_token),
|
||||
app=app._get_current_object())
|
||||
|
||||
return True
|
||||
|
||||
|
||||
def send_password_reset_notice(user):
|
||||
"""Sends the password reset notice email for the specified user.
|
||||
@@ -121,5 +119,3 @@ def reset_password_reset_token(user):
|
||||
|
||||
password_reset_requested.send(dict(user=user, token=token),
|
||||
app=app._get_current_object())
|
||||
|
||||
return token
|
||||
|
||||
Reference in New Issue
Block a user