mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
made the redirect after logging out blocking as well
This commit is contained in:
@@ -239,8 +239,8 @@ describe('authReducer', () => {
|
||||
authToken: undefined,
|
||||
error: undefined,
|
||||
loaded: false,
|
||||
blocking: false,
|
||||
loading: false,
|
||||
blocking: true,
|
||||
loading: true,
|
||||
info: undefined,
|
||||
refreshing: false,
|
||||
userId: undefined
|
||||
|
@@ -141,7 +141,6 @@ export function authReducer(state: any = initialState, action: AuthActions): Aut
|
||||
error: (action as LogOutErrorAction).payload.message
|
||||
});
|
||||
|
||||
case AuthActionTypes.LOG_OUT_SUCCESS:
|
||||
case AuthActionTypes.REFRESH_TOKEN_ERROR:
|
||||
return Object.assign({}, state, {
|
||||
authenticated: false,
|
||||
@@ -155,6 +154,19 @@ export function authReducer(state: any = initialState, action: AuthActions): Aut
|
||||
userId: undefined
|
||||
});
|
||||
|
||||
case AuthActionTypes.LOG_OUT_SUCCESS:
|
||||
return Object.assign({}, state, {
|
||||
authenticated: false,
|
||||
authToken: undefined,
|
||||
error: undefined,
|
||||
loaded: false,
|
||||
blocking: true,
|
||||
loading: true,
|
||||
info: undefined,
|
||||
refreshing: false,
|
||||
userId: undefined
|
||||
});
|
||||
|
||||
case AuthActionTypes.REDIRECT_AUTHENTICATION_REQUIRED:
|
||||
case AuthActionTypes.REDIRECT_TOKEN_EXPIRED:
|
||||
return Object.assign({}, state, {
|
||||
|
Reference in New Issue
Block a user