CosmoAI commited on
Commit
76cf390
·
1 Parent(s): f5b2f2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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({"username": username})
48
  if document:
49
- if password == document["password"]:
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: