mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 01:40:38 +01:00
11 lines
260 B
Python
11 lines
260 B
Python
from flask import redirect, url_for, flash
|
|
from flask_login import logout_user
|
|
|
|
from app.auth.base import auth_bp
|
|
|
|
|
|
@auth_bp.route("/logout")
|
|
def logout():
|
|
logout_user()
|
|
flash("You are logged out", "success")
|
|
return redirect(url_for("auth.login"))
|