Revert auth guard handler.
This commit is contained in:
parent
599ffe9079
commit
f5c69cc574
@ -56,7 +56,7 @@ export class ErrorInterceptor implements HttpInterceptor {
|
||||
this.loggingService.sendErrorLevelMessage(errorMessage, this, { error: err });
|
||||
switch (err.status) {
|
||||
case 401: // unauthorized
|
||||
// this.router.navigateByUrl('/auth').then();
|
||||
this.router.navigateByUrl('/auth').then();
|
||||
break;
|
||||
case 403: // forbidden
|
||||
alert('Access to resource is not allowed!');
|
||||
|
@ -7,7 +7,7 @@ const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => import('@pages/pages.module').then((m) => m.PagesModule),
|
||||
canActivate: [],
|
||||
canActivate: [AuthGuard],
|
||||
},
|
||||
{ path: '**', redirectTo: '', pathMatch: 'full' },
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user