diff --git a/app/blueprints/users/settings.py b/app/blueprints/users/settings.py index 92e57d16..85ea1519 100644 --- a/app/blueprints/users/settings.py +++ b/app/blueprints/users/settings.py @@ -120,7 +120,7 @@ def handle_email_notifications(user, prefs: UserNotificationPreferences, is_new, flash("Check your email to confirm it", "success") send_verify_email.delay(newEmail, token) - return redirect(url_for("homepage.home")) + return redirect(url_for("users.email_notifications", username=user.username)) db.session.commit() return redirect(url_for("users.email_notifications", username=user.username)) diff --git a/app/templates/users/settings_email.html b/app/templates/users/settings_email.html index 4015c06b..55ebf801 100644 --- a/app/templates/users/settings_email.html +++ b/app/templates/users/settings_email.html @@ -16,11 +16,15 @@ {{ render_field(form.email, tabindex=100) }}
- Your email is needed to recover your account if you forget your - password, and to send (configurable) notifications. - Your email will never be shared with a third-party. + {{ _("Your email is needed to recover your account if you forget your password, and to send (configurable) notifications.") }} + {{ _("Your email will never be shared with a third-party.") }}
+ {% if user.email_verifications.filter_by(is_password_reset=False).count() > 0 %} ++ {{ _("There is at least one verification pending.") }} +
+ {% endif %}