should be embeded now

This commit is contained in:
piair
2023-08-29 18:53:06 +02:00
parent 74ea8ee854
commit fa45d97576
4 changed files with 58 additions and 3 deletions

View File

@ -159,7 +159,7 @@ def change_password():
# handle login failed
@app.errorhandler(401)
def unauthorized(e):
return(render_template("login.html"))
return(redirect("login"))
# callback to reload the user object
@ -363,6 +363,10 @@ def logs():
print(configs)
return(render_template("logs.html", data=configs))
@app.route("/stats/", methods=["GET", "POST"])
def logs():
return(render_template("stats.html"))
@app.route('/download/<path:filename>', methods=['GET', 'POST'])