d1 init ready for moving

logout added
d1 added
This commit is contained in:
KyuDev 2023-04-13 16:57:17 +02:00
parent f36c1a9e85
commit a96cfb451f
2 changed files with 1349 additions and 0 deletions

View File

@ -87,6 +87,16 @@ def login_general():
return render_template("login/main_login.html") return render_template("login/main_login.html")
@app.route("/logout", methods=['GET']) #logout
def cpdashy_logout_main():
try:
logout_user()
except:
pass #prolly not even logged in
return redirect("/login")
# Main Dashboard start # Main Dashboard start
def cpdash_get_sidebar(): def cpdash_get_sidebar():

File diff suppressed because it is too large Load Diff