Tweak the login page
This commit is contained in:
parent
e3284416d2
commit
5323995633
3 changed files with 17 additions and 4 deletions
3
app.py
3
app.py
|
@ -471,6 +471,9 @@ def admin_logout():
|
|||
|
||||
@app.route("/login", methods=["POST", "GET"])
|
||||
def admin_login():
|
||||
if session.get("logged_in") is True:
|
||||
return redirect(url_for("admin_notifications"))
|
||||
|
||||
devices = [doc["device"] for doc in DB.u2f.find()]
|
||||
u2f_enabled = True if devices else False
|
||||
if request.method == "POST":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue