mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 23:51:13 +01:00
97805173cb
* remove envs used for proton beta link * remove is_connect_with_proton_enabled()
17 lines
539 B
Python
17 lines
539 B
Python
from flask import make_response, redirect, url_for, flash
|
|
from flask_login import current_user
|
|
|
|
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.setting", _anchor="connect-with-proton")
|
|
else:
|
|
redirect_url = url_for("auth.login")
|
|
|
|
response = make_response(redirect(redirect_url))
|
|
|
|
flash("You can now connect your Proton and your SimpleLogin account", "success")
|
|
return response
|