reshav1 commited on
Commit
4baed07
·
1 Parent(s): e53417a

Update app.py

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