In some cases, the server returns `user_second_factors` as the error key in the response
This commit is contained in:
parent
b9023e0eb4
commit
bbab50fa62
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue