mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 21:13:07 +00:00
Changed type of payload in class RetrieveAuthMethodsSuccessAction
This commit is contained in:
@@ -7,6 +7,7 @@ import {type} from '../../shared/ngrx/type';
|
|||||||
// import models
|
// import models
|
||||||
import {EPerson} from '../eperson/models/eperson.model';
|
import {EPerson} from '../eperson/models/eperson.model';
|
||||||
import {AuthTokenInfo} from './models/auth-token-info.model';
|
import {AuthTokenInfo} from './models/auth-token-info.model';
|
||||||
|
import {AuthMethodModel} from './models/auth-method.model';
|
||||||
|
|
||||||
export const AuthActionTypes = {
|
export const AuthActionTypes = {
|
||||||
AUTHENTICATE: type('dspace/auth/AUTHENTICATE'),
|
AUTHENTICATE: type('dspace/auth/AUTHENTICATE'),
|
||||||
@@ -336,16 +337,16 @@ export class RetrieveAuthMethodsAction implements Action {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if token is already present upon initial load.
|
* Get Authentication methods enabled at the backend
|
||||||
* @class CheckAuthenticationTokenAction
|
* @class RetrieveAuthMethodsSuccessAction
|
||||||
* @implements {Action}
|
* @implements {Action}
|
||||||
*/
|
*/
|
||||||
export class RetrieveAuthMethodsSuccessAction implements Action {
|
export class RetrieveAuthMethodsSuccessAction implements Action {
|
||||||
public type: string = AuthActionTypes.RETRIEVE_AUTH_METHODS_SUCCESS;
|
public type: string = AuthActionTypes.RETRIEVE_AUTH_METHODS_SUCCESS;
|
||||||
payload: string;
|
payload: AuthMethodModel[];
|
||||||
|
|
||||||
constructor(location: string) {
|
constructor(authMethods: AuthMethodModel[] ) {
|
||||||
this.payload = location;
|
this.payload = authMethods;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user