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 });
|
this.loggingService.sendErrorLevelMessage(errorMessage, this, { error: err });
|
||||||
switch (err.status) {
|
switch (err.status) {
|
||||||
case 401: // unauthorized
|
case 401: // unauthorized
|
||||||
// this.router.navigateByUrl('/auth').then();
|
this.router.navigateByUrl('/auth').then();
|
||||||
break;
|
break;
|
||||||
case 403: // forbidden
|
case 403: // forbidden
|
||||||
alert('Access to resource is not allowed!');
|
alert('Access to resource is not allowed!');
|
||||||
|
@ -7,7 +7,7 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
loadChildren: () => import('@pages/pages.module').then((m) => m.PagesModule),
|
loadChildren: () => import('@pages/pages.module').then((m) => m.PagesModule),
|
||||||
canActivate: [],
|
canActivate: [AuthGuard],
|
||||||
},
|
},
|
||||||
{ path: '**', redirectTo: '', pathMatch: 'full' },
|
{ path: '**', redirectTo: '', pathMatch: 'full' },
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user