IsaacKerson commited on
Commit
7b3e91c
1 Parent(s): 7aa0686

add app fuction to join.py

Browse files
Files changed (1) hide show
  1. 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
- st.markdown("## Join")
 
10
 
11
- with st.form("join_form"):
12
- first_name = st.text_input("First Name")
13
- last_name = st.text_input("Last Name")
14
- user_name = st.text_input("User Name")
15
- password1 = st.text_input("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.")
 
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.")