From 3517e9bee97ed62b30c3ed5c845c3473c703d923 Mon Sep 17 00:00:00 2001 From: Julius Gruber Date: Thu, 29 Aug 2019 10:22:38 +0200 Subject: [PATCH] Changed type of payload in class RetrieveAuthMethodsSuccessAction --- src/app/core/auth/auth.actions.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/core/auth/auth.actions.ts b/src/app/core/auth/auth.actions.ts index b0343e2dc8..9f3a2dddc4 100644 --- a/src/app/core/auth/auth.actions.ts +++ b/src/app/core/auth/auth.actions.ts @@ -7,6 +7,7 @@ import {type} from '../../shared/ngrx/type'; // import models import {EPerson} from '../eperson/models/eperson.model'; import {AuthTokenInfo} from './models/auth-token-info.model'; +import {AuthMethodModel} from './models/auth-method.model'; export const AuthActionTypes = { AUTHENTICATE: type('dspace/auth/AUTHENTICATE'), @@ -336,16 +337,16 @@ export class RetrieveAuthMethodsAction implements Action { } /** - * Check if token is already present upon initial load. - * @class CheckAuthenticationTokenAction + * Get Authentication methods enabled at the backend + * @class RetrieveAuthMethodsSuccessAction * @implements {Action} */ export class RetrieveAuthMethodsSuccessAction implements Action { public type: string = AuthActionTypes.RETRIEVE_AUTH_METHODS_SUCCESS; - payload: string; + payload: AuthMethodModel[]; - constructor(location: string) { - this.payload = location; + constructor(authMethods: AuthMethodModel[] ) { + this.payload = authMethods; } }