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:
Miguel Serrano 2020-04-22 11:56:59 +02:00 committed by Copybot
parent f39a650823
commit c62dd1cacb

View file

@ -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