From a279608c378e32c2eb996f6a44aac964299c36ca Mon Sep 17 00:00:00 2001 From: Lera24 Date: Fri, 17 May 2024 16:50:36 +0300 Subject: [PATCH] fix: disabled third step when have problem in second step in login[WTEL-3405] --- src/components/auth/login/the-login.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/auth/login/the-login.vue b/src/components/auth/login/the-login.vue index af307def..23425975 100644 --- a/src/components/auth/login/the-login.vue +++ b/src/components/auth/login/the-login.vue @@ -112,12 +112,16 @@ export default { } } - this.activeStep = this.activeStep + 1; - - if (this.activeStep === 3) { - await this.get2faSessionId(); + if (this.activeStep === 2 && this.enabledTfa) { + try{ + await this.get2faSessionId(); + } catch (err) { + return; + } } + this.activeStep = this.activeStep + 1; + } else { this.$emit('submit'); }