FIX: clear previous errors on second factor form display (#14987)

This commit is contained in:
Joffrey JAFFEUX 2021-11-17 13:47:38 +01:00 committed by GitHub
parent a3a4f16e88
commit 113ecab7a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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