From 6be60f69733337e2adc873b57f3852c9929cbae2 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Sat, 7 Feb 2026 17:39:22 -0800 Subject: [PATCH] Hide Turnstile captcha when showing signup --- src/gui/src/initgui.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/src/initgui.js b/src/gui/src/initgui.js index 27075a3b7..c02785ea9 100644 --- a/src/gui/src/initgui.js +++ b/src/gui/src/initgui.js @@ -927,8 +927,9 @@ window.initgui = async function (options) { 'method': 'POST', }).then(response => response.json()) .then(async data => { - // Show register screen + // Show register screen if ( data.email && data.email !== window.user?.email ) { + // show signup window await UIWindowSignup({ reload_on_success: true, email: data.email, @@ -1118,6 +1119,9 @@ window.initgui = async function (options) { err_obj = e; } if ( err_obj.code === 'must_login_or_signup' ) { + // hide Turnstile challenge + $('.captcha-modal').hide(); + await UIWindowSignup({ reload_on_success: false, send_confirmation_code: false,