diff --git a/app.py b/app.py index 7c61f1b..0e07383 100644 --- a/app.py +++ b/app.py @@ -206,16 +206,6 @@ def user_dashboard(): return "User data not found", 404 return redirect(url_for("login")) -@app.route("/dashboard") -def dashboard(): - """Das Dashboard nach erfolgreicher Authentifizierung.""" - if "discord_user" not in session: - return redirect(url_for("login")) - - user_info = session['discord_user'] - return render_template("index.html", user_info=user_info) - - @app.route("/logout") def logout(): """Löscht die Benutzersitzung und meldet den Benutzer ab.""" @@ -227,14 +217,14 @@ def logout(): def start(): if "username" in session: start_bot() - return redirect(url_for("index")) + return redirect(url_for("admin_dashboard")) return redirect(url_for("login")) @app.route("/stop_bot") def stop(): if "username" in session: stop_bot() - return redirect(url_for("index")) + return redirect(url_for("admin_dashboard")) return redirect(url_for("login")) @app.route("/settings", methods=["GET", "POST"]) diff --git a/templates/logs.html b/templates/logs.html index 39b0190..7e8d5bd 100644 --- a/templates/logs.html +++ b/templates/logs.html @@ -17,7 +17,7 @@ Download Logs
- Back to Dashboard + Back to Dashboard diff --git a/templates/settings.html b/templates/settings.html index 73c36d1..c546e65 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -22,7 +22,7 @@ - Back to Dashboard + Back to Dashboard diff --git a/templates/users.html b/templates/users.html index 9fa703b..25d62a6 100644 --- a/templates/users.html +++ b/templates/users.html @@ -51,7 +51,7 @@ {% endfor %} - Back to Dashboard + Back to Dashboard