Spaces:
Sleeping
Sleeping
Add bypass param for testing
Browse files
app.py
CHANGED
|
@@ -260,8 +260,14 @@ st.markdown(GLOBAL_CSS, unsafe_allow_html=True)
|
|
| 260 |
# Session State Initialization
|
| 261 |
# =====================================================================
|
| 262 |
|
|
|
|
|
|
|
| 263 |
if "auth_stage" not in st.session_state:
|
| 264 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
if "auth_email" not in st.session_state:
|
| 266 |
st.session_state.auth_email = ""
|
| 267 |
if "auth_code" not in st.session_state:
|
|
|
|
| 260 |
# Session State Initialization
|
| 261 |
# =====================================================================
|
| 262 |
|
| 263 |
+
# Secret bypass: ?bypass=cait2026 skips auth
|
| 264 |
+
_qp = st.query_params
|
| 265 |
if "auth_stage" not in st.session_state:
|
| 266 |
+
if _qp.get("bypass") == "cait2026":
|
| 267 |
+
st.session_state.auth_stage = "demo"
|
| 268 |
+
st.session_state.demo_start_time = time.time() + 99999
|
| 269 |
+
else:
|
| 270 |
+
st.session_state.auth_stage = "email" # email | code | demo | ended
|
| 271 |
if "auth_email" not in st.session_state:
|
| 272 |
st.session_state.auth_email = ""
|
| 273 |
if "auth_code" not in st.session_state:
|