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

View File

@ -160,6 +160,7 @@ export default Controller.extend(ModalFunctionality, {
// Successful login
if (result && result.error) {
this.set("loggingIn", false);
this.clearFlash();
if (
(result.security_key_enabled || result.totp_enabled) &&