diff --git a/src/common/common.py b/src/common/common.py index b3e3d242..a36adf5c 100644 --- a/src/common/common.py +++ b/src/common/common.py @@ -228,10 +228,15 @@ def page_setup(page: str = "") -> dict[str, Any]: params = render_sidebar(page) # If run in hosted mode, show captcha as long as it has not been solved - if not "local" in sys.argv: - if "controllo" not in st.session_state: - # Apply captcha by calling the captcha_control function - captcha_control() + #if not "local" in sys.argv: + # if "controllo" not in st.session_state: + # # Apply captcha by calling the captcha_control function + # captcha_control() + + # If run in hosted mode, show captcha as long as it has not been solved + if 'controllo' not in st.session_state or params["controllo"] == False: + # Apply captcha by calling the captcha_control function + captcha_control() return params