Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|