Jon Solow
commited on
Commit
·
ca6f10b
1
Parent(s):
5c97774
Run db add new user during new user form
Browse files- src/login.py +2 -1
src/login.py
CHANGED
@@ -5,7 +5,7 @@ import re
|
|
5 |
import streamlit as st
|
6 |
from streamlit_gsheets import GSheetsConnection
|
7 |
from streamlit.runtime.secrets import AttrDict, secrets_singleton
|
8 |
-
from data_storage import get_user_id_if_email_exists, get_user
|
9 |
|
10 |
|
11 |
class HFFriendlyGSheetsConnection(GSheetsConnection):
|
@@ -103,6 +103,7 @@ def create_new_user_request(email: str, name: str):
|
|
103 |
index=[0],
|
104 |
),
|
105 |
)
|
|
|
106 |
st.info("New user request submitted. Please check your email for a login url with a few minutes.")
|
107 |
|
108 |
|
|
|
5 |
import streamlit as st
|
6 |
from streamlit_gsheets import GSheetsConnection
|
7 |
from streamlit.runtime.secrets import AttrDict, secrets_singleton
|
8 |
+
from data_storage import get_user_id_if_email_exists, get_user, add_new_user
|
9 |
|
10 |
|
11 |
class HFFriendlyGSheetsConnection(GSheetsConnection):
|
|
|
103 |
index=[0],
|
104 |
),
|
105 |
)
|
106 |
+
add_new_user(email, name)
|
107 |
st.info("New user request submitted. Please check your email for a login url with a few minutes.")
|
108 |
|
109 |
|