Added i18n labels

This commit is contained in:
Giuseppe Digilio
2018-04-05 12:52:05 +02:00
parent 034ca02f38
commit 21ace2b68f

View File

@@ -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