Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,10 +65,10 @@ def login():
|
|
| 65 |
|
| 66 |
if username in users and check_password_hash(users[username], password):
|
| 67 |
session["user"] = username
|
| 68 |
-
return render_template(
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
flash("Login successful!", "success")
|
| 73 |
return redirect(url_for("dashboard"))
|
| 74 |
else:
|
|
|
|
| 65 |
|
| 66 |
if username in users and check_password_hash(users[username], password):
|
| 67 |
session["user"] = username
|
| 68 |
+
# return render_template(
|
| 69 |
+
# "dashboard.html",
|
| 70 |
+
# username=session["user"],
|
| 71 |
+
# )
|
| 72 |
flash("Login successful!", "success")
|
| 73 |
return redirect(url_for("dashboard"))
|
| 74 |
else:
|