Rohit
commited on
Commit
·
bb8a9ac
1
Parent(s):
82d6cda
this
Browse files
Auth.py
CHANGED
|
@@ -18,21 +18,21 @@ except Exception as e:
|
|
| 18 |
print (e)
|
| 19 |
|
| 20 |
|
| 21 |
-
db = client['
|
| 22 |
|
| 23 |
|
| 24 |
-
col = db['
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
-
@st.cache_data
|
| 29 |
|
| 30 |
def signupPage():
|
| 31 |
st.title("signup")
|
| 32 |
username = st.text_input("Username", key="svusername")
|
| 33 |
password = st.text_input("Password", type="password", key="password")
|
| 34 |
a= st.number_input("Age", min_value=18, max_value=100, step=1, key="age")
|
| 35 |
-
p = st.number_input("Phone", min_value
|
| 36 |
m= st.text_input("Email", key="mail")
|
| 37 |
|
| 38 |
|
|
@@ -73,7 +73,7 @@ def loginPage():
|
|
| 73 |
def main():
|
| 74 |
|
| 75 |
with st.sidebar:
|
| 76 |
-
selected = option_menu(
|
| 77 |
|
| 78 |
if selected == "Login":
|
| 79 |
loginPage()
|
|
|
|
| 18 |
print (e)
|
| 19 |
|
| 20 |
|
| 21 |
+
db = client['AllData']
|
| 22 |
|
| 23 |
|
| 24 |
+
col = db['Users']
|
| 25 |
+
|
| 26 |
|
| 27 |
|
| 28 |
|
|
|
|
| 29 |
|
| 30 |
def signupPage():
|
| 31 |
st.title("signup")
|
| 32 |
username = st.text_input("Username", key="svusername")
|
| 33 |
password = st.text_input("Password", type="password", key="password")
|
| 34 |
a= st.number_input("Age", min_value=18, max_value=100, step=1, key="age")
|
| 35 |
+
p = st.number_input("Phone", min_value=+91, max_value=9999999999, key="phone")
|
| 36 |
m= st.text_input("Email", key="mail")
|
| 37 |
|
| 38 |
|
|
|
|
| 73 |
def main():
|
| 74 |
|
| 75 |
with st.sidebar:
|
| 76 |
+
selected = option_menu(None, ["Login", "SignUp"])
|
| 77 |
|
| 78 |
if selected == "Login":
|
| 79 |
loginPage()
|