mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
11 lines
272 B
Python
11 lines
272 B
Python
|
from flask import session, redirect, url_for, flash
|
||
|
|
||
|
from app.internal.base import internal_bp
|
||
|
|
||
|
|
||
|
@internal_bp.route("/exit-sudo-mode")
|
||
|
def exit_sudo_mode():
|
||
|
session["sudo_time"] = 0
|
||
|
flash("Exited sudo mode", "info")
|
||
|
return redirect(url_for("dashboard.index"))
|