From 95e4470c507d6259cf8137ecc1a8b6199335d936 Mon Sep 17 00:00:00 2001 From: Thomas Rittson Date: Wed, 22 Dec 2021 15:07:12 +1000 Subject: [PATCH] Clear twoFactorService state when clearing state --- common/src/misc/logInDelegate/logIn.delegate.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/src/misc/logInDelegate/logIn.delegate.ts b/common/src/misc/logInDelegate/logIn.delegate.ts index adf28b12..59dbe0ce 100644 --- a/common/src/misc/logInDelegate/logIn.delegate.ts +++ b/common/src/misc/logInDelegate/logIn.delegate.ts @@ -108,6 +108,8 @@ export abstract class LogInDelegate { protected clearState() { this.tokenRequest = null; + this.twoFactorService.clearProviders(); + this.twoFactorService.clearSelectedProvider(); } protected async buildDeviceRequest() {