diff --git a/flask_security/confirmable.py b/flask_security/confirmable.py index 839a751..43c952c 100644 --- a/flask_security/confirmable.py +++ b/flask_security/confirmable.py @@ -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. diff --git a/flask_security/recoverable.py b/flask_security/recoverable.py index 6b4e0a3..f394aff 100644 --- a/flask_security/recoverable.py +++ b/flask_security/recoverable.py @@ -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