Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def login():
|
|
30 |
users =list(col.find())
|
31 |
for user in users:
|
32 |
|
33 |
-
if usrname == user["
|
34 |
st.success("Logged in as {}".format(usrname))
|
35 |
st.session_state["user"] = "logged"
|
36 |
flag = True
|
|
|
30 |
users =list(col.find())
|
31 |
for user in users:
|
32 |
|
33 |
+
if usrname == user["Username"] and password == user["password"]:
|
34 |
st.success("Logged in as {}".format(usrname))
|
35 |
st.session_state["user"] = "logged"
|
36 |
flag = True
|