From f7e27ce0daf9400f43115ca5e475255a83f3a130 Mon Sep 17 00:00:00 2001 From: Carlos Quintana Date: Fri, 20 May 2022 10:52:46 +0200 Subject: [PATCH] Add login_required to the account_activated page --- app/onboarding/views/account_activated.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/onboarding/views/account_activated.py b/app/onboarding/views/account_activated.py index ea52261a..3e476377 100644 --- a/app/onboarding/views/account_activated.py +++ b/app/onboarding/views/account_activated.py @@ -1,6 +1,7 @@ from app.onboarding.base import onboarding_bp from enum import Enum from flask import redirect, render_template, request, url_for +from flask_login import login_required CHROME_EXTENSION_LINK = "https://chrome.google.com/webstore/detail/simpleloginreceive-send-e/dphilobhebphkdjbpfohgikllaljmgbn" @@ -16,7 +17,6 @@ class Browser(Enum): def get_browser() -> Browser: - user_agent = request.user_agent if user_agent.browser == "edge": return Browser.Edge @@ -38,6 +38,7 @@ def is_mobile() -> bool: @onboarding_bp.route("/account_activated", methods=["GET"]) +@login_required def account_activated(): if is_mobile(): return redirect(url_for("dashboard.index"))