Add login_required to the account_activated page

This commit is contained in:
Carlos Quintana 2022-05-20 10:52:46 +02:00
parent 893520c361
commit f7e27ce0da
No known key found for this signature in database
GPG key ID: 15E73DCC410679F8

View file

@ -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"))