Skip to content

Commit

Permalink
fix: redirect customer to home instead of deployments after login
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Miglinci <pmig@glasskube.com>
  • Loading branch information
pmig committed Jan 16, 2025
1 parent 0e38939 commit 122f814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/cloud-ui/src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class LoginComponent implements OnInit, OnDestroy {
try {
await lastValueFrom(this.auth.login(value.email!, value.password!));
if (this.auth.hasRole('customer')) {
await this.router.navigate(['/deployments']);
await this.router.navigate(['/home']);
} else {
await this.router.navigate(['/dashboard']);
}
Expand Down

0 comments on commit 122f814

Please sign in to comment.