Skip to content

Commit

Permalink
Merge pull request #74 from webitel/fix/disabled-third-step
Browse files Browse the repository at this point in the history
fix: disabled third step when have problem in second step in login[WT…
  • Loading branch information
Lera24 authored May 17, 2024
2 parents aed1d87 + a279608 commit a62ac39
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 a62ac39

Please sign in to comment.