master changes
This commit is contained in:
parent
39bf3181b7
commit
88465a2969
@ -48,7 +48,7 @@ export class TokenInterceptor implements HttpInterceptor{
|
|||||||
return (error: any): Observable<T> => {
|
return (error: any): Observable<T> => {
|
||||||
if(error instanceof HttpErrorResponse){
|
if(error instanceof HttpErrorResponse){
|
||||||
console.error("Error: " + error.status);
|
console.error("Error: " + error.status);
|
||||||
alert(error.status);
|
//alert(error.status);
|
||||||
if(error.status == 401 || error.status == 500){
|
if(error.status == 401 || error.status == 500){
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
this.router.navigate(['/authentication/login']);
|
this.router.navigate(['/authentication/login']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user