DHEIVER commited on
Commit
649297f
·
verified ·
1 Parent(s): 72e3c06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -130,6 +130,8 @@ def conversation(qa_chain, message, history, language):
130
 
131
  # Login function
132
  def login(username, password):
 
 
133
  if username in USER_DB and USER_DB[username]["password"] == password:
134
  session_token = secrets.token_hex(16)
135
  SESSIONS[session_token] = username
 
130
 
131
  # Login function
132
  def login(username, password):
133
+ # Debugging: Uncomment the next line to see what’s being entered
134
+ # print(f"Attempting login with username: {username}, password: {password}")
135
  if username in USER_DB and USER_DB[username]["password"] == password:
136
  session_token = secrets.token_hex(16)
137
  SESSIONS[session_token] = username