2022-05-19 17:01:38 +02:00
|
|
|
from app.onboarding.base import onboarding_bp
|
2022-06-16 09:56:00 +02:00
|
|
|
from app.onboarding.utils import get_extension_info
|
|
|
|
from flask import redirect, render_template, url_for
|
2022-05-20 10:52:46 +02:00
|
|
|
from flask_login import login_required
|
2022-05-19 17:01:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
@onboarding_bp.route("/account_activated", methods=["GET"])
|
2022-05-20 10:52:46 +02:00
|
|
|
@login_required
|
2022-05-19 17:01:38 +02:00
|
|
|
def account_activated():
|
2022-06-16 09:56:00 +02:00
|
|
|
info = get_extension_info()
|
|
|
|
if not info:
|
2022-05-19 17:01:38 +02:00
|
|
|
return redirect(url_for("dashboard.index"))
|
|
|
|
|
|
|
|
return render_template(
|
|
|
|
"onboarding/account_activated.html",
|
2022-06-16 09:56:00 +02:00
|
|
|
extension_link=info.url,
|
|
|
|
browser_name=info.browser,
|
2022-05-19 17:01:38 +02:00
|
|
|
)
|