Added i18n label and fixes

This commit is contained in:
Giuseppe Digilio
2018-04-04 17:01:49 +02:00
parent 934bb603f5
commit 26a743322e
4 changed files with 37 additions and 10 deletions

View File

@@ -142,7 +142,7 @@ export class AuthInterceptor implements HttpInterceptor {
} else if (this.isUnauthorized(error)) {
// The access token provided is expired, revoked, malformed, or invalid for other reasons
// 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 error response as is.