Spaces:
Sleeping
Sleeping
Nikhil0987
commited on
Commit
·
3df814b
1
Parent(s):
8fa73dd
Update app.py
Browse files
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["
|
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
|