From a9a291f5b9a4a4dc6303b7f9d6e5508c0ab635e5 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 14 Dec 2016 08:33:59 +0100 Subject: [PATCH] Login bugfix --- src/Squidex/app/shared/services/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Squidex/app/shared/services/auth.service.ts b/src/Squidex/app/shared/services/auth.service.ts index f02833058..c0af3fa4e 100644 --- a/src/Squidex/app/shared/services/auth.service.ts +++ b/src/Squidex/app/shared/services/auth.service.ts @@ -188,7 +188,7 @@ export class AuthService { private checkResponse(response: Observable) { return response.catch((error: Response) => { if (error.status === 401 || error.status === 404) { - this.loginRedirect(); + this.logoutRedirect(); } else if (error.status === 403) { this.router.navigate(['/404']); }