Jon Solow
commited on
Commit
·
f3db32c
1
Parent(s):
5625283
Organize new user button
Browse files- src/login.py +9 -8
src/login.py
CHANGED
@@ -56,17 +56,18 @@ def check_email(email: str) -> bool:
|
|
56 |
|
57 |
def new_user_form():
|
58 |
"""Form to collect new user information and submit"""
|
59 |
-
if st.button("Existing User
|
60 |
existing_user_new_token()
|
61 |
else:
|
62 |
if NEW_USER_ENABLED:
|
63 |
-
"
|
64 |
-
|
65 |
-
st.
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
70 |
|
71 |
|
72 |
def existing_user_new_token():
|
|
|
56 |
|
57 |
def new_user_form():
|
58 |
"""Form to collect new user information and submit"""
|
59 |
+
if st.button("Existing User - resend login token email"):
|
60 |
existing_user_new_token()
|
61 |
else:
|
62 |
if NEW_USER_ENABLED:
|
63 |
+
if st.button("New User Registration"):
|
64 |
+
"""Form to collect new user information and submit"""
|
65 |
+
with st.form("New User Registration"):
|
66 |
+
st.header("New User Registration")
|
67 |
+
st.write("After submitting, a url to login will be emailed to you.")
|
68 |
+
st.text_input("Email Address", key="new_user_email")
|
69 |
+
st.text_input("Name", key="new_user_name")
|
70 |
+
st.form_submit_button("Submit", on_click=new_user_submitted)
|
71 |
|
72 |
|
73 |
def existing_user_new_token():
|