mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
fix totp infinite loop on back to /login
This commit is contained in:
parent
e99937fb19
commit
caaa62b356
1 changed files with 3 additions and 1 deletions
|
|
@ -470,7 +470,9 @@ def before_request():
|
|||
and not request.path.startswith(("/css", "/images", "/js", "/json", "/webfonts"))
|
||||
and request.path.endswith("/login")
|
||||
):
|
||||
return redirect(url_for("login", next=request.path))
|
||||
logout_user()
|
||||
session.clear()
|
||||
return redirect(url_for("login"))
|
||||
|
||||
# Case not login page, keep on 2FA before any other access
|
||||
if (
|
||||
|
|
|
|||
Loading…
Reference in a new issue