mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
parent
d812b88e76
commit
3730672c97
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue