Spaces:
Runtime error
Runtime error
IsaacKerson
commited on
Commit
•
5674bf3
1
Parent(s):
24713d1
add form submit button
Browse files- pages/join.py +3 -1
pages/join.py
CHANGED
@@ -14,6 +14,8 @@ with st.form("join_form"):
|
|
14 |
user_name = st.text_input("User Name")
|
15 |
password1 = st.text_intput("Password", type="password")
|
16 |
password2 = st.text_input("Confirm Password", type="password")
|
|
|
17 |
submitted = st.form_submit_button("Submit")
|
18 |
-
|
|
|
19 |
st.warning("The passwords do not match.")
|
|
|
14 |
user_name = st.text_input("User Name")
|
15 |
password1 = st.text_intput("Password", type="password")
|
16 |
password2 = st.text_input("Confirm Password", type="password")
|
17 |
+
|
18 |
submitted = st.form_submit_button("Submit")
|
19 |
+
|
20 |
+
if submitted and password1.strip() != password2.strip():
|
21 |
st.warning("The passwords do not match.")
|