mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Splitted redirect to login page method
This commit is contained in:
@@ -276,6 +276,13 @@ export class AuthService {
|
||||
* Redirect to the login route
|
||||
*/
|
||||
public redirectToLogin() {
|
||||
this.router.navigate(LOGIN_ROUTE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Redirect to the login route when token has expired
|
||||
*/
|
||||
public redirectToLoginWhenTokenExpired() {
|
||||
// Hard redirect to login page, so that all state is definitely lost
|
||||
this._window.nativeWindow.location.href = LOGIN_ROUTE + '?expired=true';
|
||||
}
|
||||
|
Reference in New Issue
Block a user