Update app.py
Browse files
app.py
CHANGED
@@ -44,9 +44,9 @@ def login():
|
|
44 |
st.error("The email address is not valid.")
|
45 |
password = st.text_input("Password", type="password")
|
46 |
if st.button("Login"):
|
47 |
-
document = col.find_one({"
|
48 |
if document:
|
49 |
-
if password == document["
|
50 |
st.session_state.user = username
|
51 |
st.experimental_rerun()
|
52 |
else:
|
|
|
44 |
st.error("The email address is not valid.")
|
45 |
password = st.text_input("Password", type="password")
|
46 |
if st.button("Login"):
|
47 |
+
document = col.find_one({"Username": username})
|
48 |
if document:
|
49 |
+
if password == document["Password"]:
|
50 |
st.session_state.user = username
|
51 |
st.experimental_rerun()
|
52 |
else:
|