From 21ace2b68f05560b548975e81ecf33d32320b561 Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Thu, 5 Apr 2018 12:52:05 +0200 Subject: [PATCH] Added i18n labels --- src/app/core/auth/auth.interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/core/auth/auth.interceptor.ts b/src/app/core/auth/auth.interceptor.ts index ab105d825d..651e2fd096 100644 --- a/src/app/core/auth/auth.interceptor.ts +++ b/src/app/core/auth/auth.interceptor.ts @@ -78,7 +78,7 @@ export class AuthInterceptor implements HttpInterceptor { authService.setRedirectUrl(this.router.url); // The access token is expired // Redirect to the login route - this.store.dispatch(new RedirectWhenTokenExpiredAction('Your session has expired. Please log in again.')); + this.store.dispatch(new RedirectWhenTokenExpiredAction('auth.messages.expired')); return Observable.of(null); } else if (!this.isAuthRequest(req) && isNotEmpty(token)) { // Intercept a request that is not to the authentication endpoint