mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #2740 from overleaf/ns-jpa-remove-error-2fa
Remove error upon success for asyncForms GitOrigin-RevId: 27e09667b11229b010d270ec2637082e069fcc95
This commit is contained in:
parent
f39a650823
commit
c62dd1cacb
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ define(['../base', 'libs/passfield'], function(App) {
|
|||
formData['g-recaptcha-response'] = grecaptchaResponse
|
||||
}
|
||||
|
||||
// clear the response object which may be referenced downstream
|
||||
Object.keys(response).forEach(field => delete response[field])
|
||||
scope[attrs.name].inflight = true
|
||||
|
||||
// for asyncForm prevent automatic redirect to /login if
|
||||
|
|
Loading…
Reference in a new issue