Spaces:
Runtime error
Runtime error
IsaacKerson
commited on
Commit
•
7b3e91c
1
Parent(s):
7aa0686
add app fuction to join.py
Browse files- pages/join.py +12 -11
pages/join.py
CHANGED
@@ -6,16 +6,17 @@ import datetime
|
|
6 |
# Custom imports
|
7 |
from pages.utils import *
|
8 |
|
9 |
-
|
|
|
10 |
|
11 |
-
with st.form("join_form"):
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
|
20 |
-
if submitted and password1.strip() != password2.strip():
|
21 |
-
|
|
|
6 |
# Custom imports
|
7 |
from pages.utils import *
|
8 |
|
9 |
+
def app():
|
10 |
+
st.markdown("## Join")
|
11 |
|
12 |
+
with st.form("join_form"):
|
13 |
+
first_name = st.text_input("First Name")
|
14 |
+
last_name = st.text_input("Last Name")
|
15 |
+
user_name = st.text_input("User Name")
|
16 |
+
password1 = st.text_input("Password", type="password")
|
17 |
+
password2 = st.text_input("Confirm Password", type="password")
|
18 |
+
|
19 |
+
submitted = st.form_submit_button("Submit")
|
20 |
|
21 |
+
if submitted and password1.strip() != password2.strip():
|
22 |
+
st.warning("The passwords do not match.")
|