Update app.py
Browse files
app.py
CHANGED
|
@@ -30,8 +30,8 @@ def main():
|
|
| 30 |
st.write("You are already logged in.")
|
| 31 |
st.write("Redirecting to your dashboard...")
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
st.
|
| 35 |
return
|
| 36 |
|
| 37 |
# Login form if not logged in
|
|
@@ -45,8 +45,8 @@ def main():
|
|
| 45 |
st.session_state.email = email
|
| 46 |
st.session_state.user_id = user_id
|
| 47 |
|
| 48 |
-
#
|
| 49 |
-
st.
|
| 50 |
|
| 51 |
st.success("Login successful! Redirecting to your dashboard...")
|
| 52 |
else:
|
|
|
|
| 30 |
st.write("You are already logged in.")
|
| 31 |
st.write("Redirecting to your dashboard...")
|
| 32 |
|
| 33 |
+
# Redirect by setting query parameter
|
| 34 |
+
st.query_params.page = "app2"
|
| 35 |
return
|
| 36 |
|
| 37 |
# Login form if not logged in
|
|
|
|
| 45 |
st.session_state.email = email
|
| 46 |
st.session_state.user_id = user_id
|
| 47 |
|
| 48 |
+
# Set query parameter to redirect to app2.py
|
| 49 |
+
st.query_params.page = "app2"
|
| 50 |
|
| 51 |
st.success("Login successful! Redirecting to your dashboard...")
|
| 52 |
else:
|