FIX: clear previous errors on second factor form display (#14987)
This commit is contained in:
parent
a3a4f16e88
commit
113ecab7a6
|
@ -160,6 +160,7 @@ export default Controller.extend(ModalFunctionality, {
|
||||||
// Successful login
|
// Successful login
|
||||||
if (result && result.error) {
|
if (result && result.error) {
|
||||||
this.set("loggingIn", false);
|
this.set("loggingIn", false);
|
||||||
|
this.clearFlash();
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(result.security_key_enabled || result.totp_enabled) &&
|
(result.security_key_enabled || result.totp_enabled) &&
|
||||||
|
|
Loading…
Reference in New Issue