mirror of
https://github.com/simple-login/app.git
synced 2024-11-14 08:01:13 +01:00
14 lines
424 B
Python
14 lines
424 B
Python
from flask import render_template, redirect, url_for
|
|
from flask_login import current_user
|
|
|
|
from app.auth.base import auth_bp
|
|
from app.log import LOG
|
|
|
|
|
|
@auth_bp.route("/social", methods=["GET", "POST"])
|
|
def social():
|
|
if current_user.is_authenticated:
|
|
LOG.d("user is already authenticated, redirect to dashboard")
|
|
return redirect(url_for("dashboard.index"))
|
|
|
|
return render_template("auth/social.html")
|