diff --git a/app/internal/integrations.py b/app/internal/integrations.py index cc26718c..5bb1efa9 100644 --- a/app/internal/integrations.py +++ b/app/internal/integrations.py @@ -1,6 +1,6 @@ import arrow from app.config import CONNECT_WITH_PROTON_COOKIE_NAME, URL -from flask import make_response, redirect, url_for +from flask import make_response, redirect, url_for, flash from flask_login import current_user from .base import internal_bp @@ -8,12 +8,13 @@ from .base import internal_bp @internal_bp.route("/integrations/proton") def set_enable_proton_cookie(): if current_user.is_authenticated: - redirect_url = url_for("dashboard.index") + redirect_url = url_for("dashboard.setting", _anchor="connect-with-proton") else: redirect_url = url_for("auth.login") response = make_response(redirect(redirect_url)) if CONNECT_WITH_PROTON_COOKIE_NAME: + flash("You can now connect your Proton and your SimpleLogin account", "success") response.set_cookie( CONNECT_WITH_PROTON_COOKIE_NAME, value="true", diff --git a/templates/dashboard/setting.html b/templates/dashboard/setting.html index c8826c0c..cbcae954 100644 --- a/templates/dashboard/setting.html +++ b/templates/dashboard/setting.html @@ -10,6 +10,10 @@ font-weight: 600; margin-bottom: 3px; } + .highlighted{ + border: solid 2px #5675E2; + } + {% endblock %} {% block default_content %} @@ -219,7 +223,7 @@ {% if connect_with_proton %} -