mirror of
https://github.com/fabioformosa/quartz-manager.git
synced 2026-05-14 22:00:30 +09:00
fixed the redirect to the login in case of security layer enabled
This commit is contained in:
@@ -42,8 +42,9 @@ export class UserService {
|
||||
this.router.initialNavigation();
|
||||
return;
|
||||
}
|
||||
if (httpErrorResponse.status < 200 || httpErrorResponse.status > 399)
|
||||
if (httpErrorResponse.status !== 401 && (httpErrorResponse.status < 200 || httpErrorResponse.status > 399)) {
|
||||
this.router.navigateByUrl('/error');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user