Marthee commited on
Commit
227ea23
·
verified ·
1 Parent(s): 0f8ca87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def check_password():
82
  correct_password = "c900"
83
 
84
  if password == correct_password:
85
- session["authenticated"] = True # 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
 
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