Skip to content

Commit 4bd61fc

Browse files
committed
feat(TFA): enhance TFA navigation logic to check for method availability
1 parent dc96df4 commit 4bd61fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/app/shared/components/auth/login/login.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class LoginComponent implements OnInit {
137137
this.startLogin = false;
138138
this.spinner.show();
139139
this.startNavigation();
140-
} else if (data.tfaRequired) {
140+
} else if (data.tfaRequired && !!data.method ) {
141141
this.spinner.show();
142142
this.router.navigate(['/totp'])
143143
.then(() => this.spinner.hide());

0 commit comments

Comments
 (0)