mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user