Update app.py
Browse files
app.py
CHANGED
@@ -44,8 +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 |
-
|
48 |
-
|
|
|
49 |
st.session_state.user = username
|
50 |
st.experimental_rerun()
|
51 |
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:
|