MANIKANDAN A
commited on
Commit
•
e3ab5e9
1
Parent(s):
b829407
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def signup_section():
|
|
46 |
new_password = st.text_input("New Password", type="password", key="new_password", help="Password should be at least 8 characters long")
|
47 |
new_email = st.text_input("Email", key="new_email", help="Enter a valid email address")
|
48 |
|
49 |
-
if st.button("Signup"
|
50 |
if not new_username or not new_password or not new_email:
|
51 |
st.error("All fields are required for signup.")
|
52 |
return
|
@@ -72,7 +72,7 @@ def login_section():
|
|
72 |
username = st.text_input("Username", key="login_username", help="Enter your username")
|
73 |
password = st.text_input("Password", type="password", key="login_password",help="Enter your password")
|
74 |
|
75 |
-
if st.button("Login"
|
76 |
if not username or not password:
|
77 |
st.error("Username and password are required for login.")
|
78 |
return
|
|
|
46 |
new_password = st.text_input("New Password", type="password", key="new_password", help="Password should be at least 8 characters long")
|
47 |
new_email = st.text_input("Email", key="new_email", help="Enter a valid email address")
|
48 |
|
49 |
+
if st.button("Signup"):
|
50 |
if not new_username or not new_password or not new_email:
|
51 |
st.error("All fields are required for signup.")
|
52 |
return
|
|
|
72 |
username = st.text_input("Username", key="login_username", help="Enter your username")
|
73 |
password = st.text_input("Password", type="password", key="login_password",help="Enter your password")
|
74 |
|
75 |
+
if st.button("Login"):
|
76 |
if not username or not password:
|
77 |
st.error("Username and password are required for login.")
|
78 |
return
|