mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 19:13:08 +00:00
fixes
This commit is contained in:
@@ -135,6 +135,7 @@ export class AuthEffects {
|
|||||||
public logOutSuccess$: Observable<Action> = this.actions$
|
public logOutSuccess$: Observable<Action> = this.actions$
|
||||||
.ofType(AuthActionTypes.LOG_OUT_SUCCESS)
|
.ofType(AuthActionTypes.LOG_OUT_SUCCESS)
|
||||||
.do(() => this.authService.removeToken())
|
.do(() => this.authService.removeToken())
|
||||||
|
.do(() => this.authService.clearRedirectUrl())
|
||||||
.do(() => this.authService.refreshAfterLogout());
|
.do(() => this.authService.refreshAfterLogout());
|
||||||
|
|
||||||
@Effect({dispatch: false})
|
@Effect({dispatch: false})
|
||||||
|
@@ -74,6 +74,11 @@ export function authReducer(state: any = initialState, action: AuthActions): Aut
|
|||||||
info: undefined
|
info: undefined
|
||||||
});
|
});
|
||||||
|
|
||||||
|
case AuthActionTypes.AUTHENTICATED:
|
||||||
|
return Object.assign({}, state, {
|
||||||
|
loading: true
|
||||||
|
});
|
||||||
|
|
||||||
case AuthActionTypes.AUTHENTICATED_ERROR:
|
case AuthActionTypes.AUTHENTICATED_ERROR:
|
||||||
return Object.assign({}, state, {
|
return Object.assign({}, state, {
|
||||||
authenticated: false,
|
authenticated: false,
|
||||||
|
@@ -195,7 +195,7 @@ export const getLogOutError = createSelector(getAuthState, _getLogOutError);
|
|||||||
export const getRegistrationError = createSelector(getAuthState, _getRegistrationError);
|
export const getRegistrationError = createSelector(getAuthState, _getRegistrationError);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the redirect url..
|
* Returns the redirect url.
|
||||||
* @function getRedirectUrl
|
* @function getRedirectUrl
|
||||||
* @param {AuthState} state
|
* @param {AuthState} state
|
||||||
* @param {any} props
|
* @param {any} props
|
||||||
|
Reference in New Issue
Block a user