Merge pull request #6502 from overleaf/jpa-skip-likely-failing-login-request

[web] skip login re-try request when no captcha response was generated

GitOrigin-RevId: 9edc6e8394914a710020983fe9cbcf09d543a82f
This commit is contained in:
Jakob Ackermann 2022-01-26 12:56:37 +00:00 committed by Copybot
parent d812b88e76
commit 3730672c97

View file

@ -33,6 +33,9 @@ function formSubmitHelper(formEl) {
) {
// Trigger captcha unconditionally.
const captchaResponse = await validateCaptchaV2()
if (!captchaResponse) {
throw e
}
data = await sendFormRequest(formEl, captchaResponse)
} else {
throw e