Spaces:
Sleeping
Sleeping
fix indent
Browse files
app.py
CHANGED
@@ -23,9 +23,9 @@ def check_password():
|
|
23 |
stored_password = os.getenv(st.session_state["username"])
|
24 |
if stored_password == st.session_state["password"]:
|
25 |
st.session_state["password_correct"] = True
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
|
30 |
# if st.session_state["username"] in st.secrets["passwords"]:
|
31 |
# stored_hashed_password = st.secrets["passwords"][st.session_state["username"]] # Retrieved as a string
|
|
|
23 |
stored_password = os.getenv(st.session_state["username"])
|
24 |
if stored_password == st.session_state["password"]:
|
25 |
st.session_state["password_correct"] = True
|
26 |
+
del st.session_state["password"] # Remove credentials from session
|
27 |
+
del st.session_state["username"]
|
28 |
+
return
|
29 |
|
30 |
# if st.session_state["username"] in st.secrets["passwords"]:
|
31 |
# stored_hashed_password = st.secrets["passwords"][st.session_state["username"]] # Retrieved as a string
|