Skip to content

Commit

Permalink
fix: disabled third step when have problem in second step in login[WT…
Browse files Browse the repository at this point in the history
…EL-3405]
  • Loading branch information
Lera24 committed May 17, 2024
1 parent aed1d87 commit a279608
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/auth/login/the-login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit a279608

Please sign in to comment.