Spaces:
Sleeping
Sleeping
Fernando Knüttel commited on
Commit ·
c38c7c0
1
Parent(s): 1fe55bc
in english the password description
Browse files- src/streamlit_app.py +3 -3
src/streamlit_app.py
CHANGED
|
@@ -29,7 +29,7 @@ def check_password():
|
|
| 29 |
# When password is not entered
|
| 30 |
if "password_correct" not in st.session_state:
|
| 31 |
st.text_input(
|
| 32 |
-
"🔑
|
| 33 |
on_change=password_entered, key="password"
|
| 34 |
)
|
| 35 |
return False
|
|
@@ -37,10 +37,10 @@ def check_password():
|
|
| 37 |
# When password is wrong
|
| 38 |
elif not st.session_state["password_correct"]:
|
| 39 |
st.text_input(
|
| 40 |
-
"🔑
|
| 41 |
on_change=password_entered, key="password"
|
| 42 |
)
|
| 43 |
-
st.error("❌
|
| 44 |
return False
|
| 45 |
|
| 46 |
# When password is korrekt
|
|
|
|
| 29 |
# When password is not entered
|
| 30 |
if "password_correct" not in st.session_state:
|
| 31 |
st.text_input(
|
| 32 |
+
"🔑 Please enter the password", type="password",
|
| 33 |
on_change=password_entered, key="password"
|
| 34 |
)
|
| 35 |
return False
|
|
|
|
| 37 |
# When password is wrong
|
| 38 |
elif not st.session_state["password_correct"]:
|
| 39 |
st.text_input(
|
| 40 |
+
"🔑 Please enter the password", type="password",
|
| 41 |
on_change=password_entered, key="password"
|
| 42 |
)
|
| 43 |
+
st.error("❌ Wrong password, please try again")
|
| 44 |
return False
|
| 45 |
|
| 46 |
# When password is korrekt
|