diff --git a/src/connectors/captcha.ts b/src/connectors/captcha.ts index b625e2d796..418d514ca3 100644 --- a/src/connectors/captcha.ts +++ b/src/connectors/captcha.ts @@ -84,9 +84,10 @@ async function start() { } function captchaSuccess(response: string) { - success(response); if (callbackUri) { document.location.replace(callbackUri + '?token=' + encodeURIComponent(response)); + } else { + success(response); } }