Nikhil0987 commited on
Commit
3df814b
·
1 Parent(s): 8fa73dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def login():
32
  password = st.text_input("Password", type="password")
33
  if st.button("Login", key="loginkey"):
34
  for user in data["users"]:
35
- if usrname == user["Username"] and password == user["password"]:
36
  st.success("Logged in as {}".format(usrname))
37
  st.session_state["user"] = "logged"
38
  flag = True
 
32
  password = st.text_input("Password", type="password")
33
  if st.button("Login", key="loginkey"):
34
  for user in data["users"]:
35
+ if usrname == user["username"] and password == user["password"]:
36
  st.success("Logged in as {}".format(usrname))
37
  st.session_state["user"] = "logged"
38
  flag = True