From 2a3d3b89d5ba2b5ae281aeb2d6b4e8d70bfa569e Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 2 Jan 2026 16:29:42 +0100 Subject: [PATCH] Login message - move to login render, dont duplicate --- changedetectionio/flask_app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/changedetectionio/flask_app.py b/changedetectionio/flask_app.py index 1ca4e733..2b20dfc2 100644 --- a/changedetectionio/flask_app.py +++ b/changedetectionio/flask_app.py @@ -471,7 +471,6 @@ def changedetection_app(config=None, datastore_o=None): @login_manager.unauthorized_handler def unauthorized_handler(): - flash(gettext("You must be logged in, please log in."), 'error') return redirect(url_for('login', next=url_for('watchlist.index'))) @app.route('/logout') @@ -500,7 +499,7 @@ def changedetection_app(config=None, datastore_o=None): if flask_login.current_user.is_authenticated: flash(gettext("Already logged in")) return redirect(url_for("watchlist.index")) - + flash(gettext("You must be logged in, please log in."), 'error') output = render_template("login.html") return output