diff --git a/app/assets/javascripts/discourse/app/controllers/password-reset.js b/app/assets/javascripts/discourse/app/controllers/password-reset.js index 850a4aaaf04..d6787d93a7a 100644 --- a/app/assets/javascripts/discourse/app/controllers/password-reset.js +++ b/app/assets/javascripts/discourse/app/controllers/password-reset.js @@ -93,7 +93,10 @@ export default Controller.extend(PasswordValidation, { DiscourseURL.redirectTo(result.redirect_to || "/"); } } else { - if (result.errors.security_keys) { + if ( + result.errors.security_keys || + result.errors.user_second_factors + ) { this.setProperties({ secondFactorRequired: this.secondFactorRequired, securityKeyRequired: this.securityKeyRequired,