reshav1 commited on
Commit
26d6f03
·
1 Parent(s): dcf86f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def login():
28
  password = st.text_input("Password", type="password")
29
  if st.button("Login", key="loginkey"):
30
  users =list(col.find())
31
- for user in data["users"]:
32
 
33
  if usrname == user["username"] and password == user["password"]:
34
  st.success("Logged in as {}".format(usrname))
 
28
  password = st.text_input("Password", type="password")
29
  if st.button("Login", key="loginkey"):
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))