Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,7 +82,7 @@ def check_password():
|
|
| 82 |
correct_password = "c900"
|
| 83 |
|
| 84 |
if password == correct_password:
|
| 85 |
-
session["authenticated"] =
|
| 86 |
session.modified = True # Mark session as modified to ensure it is saved
|
| 87 |
print("Password correct. Session data set:", session) # Debugging: Print session after setting it
|
| 88 |
return jsonify({"authenticated": True}), 200
|
|
|
|
| 82 |
correct_password = "c900"
|
| 83 |
|
| 84 |
if password == correct_password:
|
| 85 |
+
session["authenticated"] = 'authenticated' # Store authentication in session
|
| 86 |
session.modified = True # Mark session as modified to ensure it is saved
|
| 87 |
print("Password correct. Session data set:", session) # Debugging: Print session after setting it
|
| 88 |
return jsonify({"authenticated": True}), 200
|