Loading lib/Controller/AccountController.php +1 −1 Original line number Diff line number Diff line Loading @@ -248,10 +248,10 @@ class AccountController extends Controller { $captchaResult = (string) $this->session->get(CaptchaService::CAPTCHA_RESULT_KEY, ''); $response->setStatus(400); if ($captchaResult === $captchaInput) { $this->session->remove(CaptchaService::CAPTCHA_RESULT_KEY); $this->session->set(self::CAPTCHA_VERIFIED_CHECK, true); $response->setStatus(200); } $this->session->remove(CaptchaService::CAPTCHA_RESULT_KEY); return $response; } Loading src/signup/CaptchaForm.vue +4 −0 Original line number Diff line number Diff line Loading @@ -94,6 +94,7 @@ export default { this.$emit('form-submitted', { isFormValid }) } catch (error) { this.validation.isCaptchaInputNotMatched = true this.refreshCaptchaImage() } }, submitCaptchaForm() { Loading @@ -105,6 +106,9 @@ export default { showMessage(message, type) { type === 'success' ? showSuccess(message) : showError(message) }, refreshCaptchaImage() { this.captchaImageUrl = generateUrl(`/apps/${this.appName}/accounts/captcha?v=${Date.now()}`) }, }, } </script> Loading Loading
lib/Controller/AccountController.php +1 −1 Original line number Diff line number Diff line Loading @@ -248,10 +248,10 @@ class AccountController extends Controller { $captchaResult = (string) $this->session->get(CaptchaService::CAPTCHA_RESULT_KEY, ''); $response->setStatus(400); if ($captchaResult === $captchaInput) { $this->session->remove(CaptchaService::CAPTCHA_RESULT_KEY); $this->session->set(self::CAPTCHA_VERIFIED_CHECK, true); $response->setStatus(200); } $this->session->remove(CaptchaService::CAPTCHA_RESULT_KEY); return $response; } Loading
src/signup/CaptchaForm.vue +4 −0 Original line number Diff line number Diff line Loading @@ -94,6 +94,7 @@ export default { this.$emit('form-submitted', { isFormValid }) } catch (error) { this.validation.isCaptchaInputNotMatched = true this.refreshCaptchaImage() } }, submitCaptchaForm() { Loading @@ -105,6 +106,9 @@ export default { showMessage(message, type) { type === 'success' ? showSuccess(message) : showError(message) }, refreshCaptchaImage() { this.captchaImageUrl = generateUrl(`/apps/${this.appName}/accounts/captcha?v=${Date.now()}`) }, }, } </script> Loading