mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Changed log-in-password.component to use injectedAuthModel
This commit is contained in:
@@ -23,6 +23,7 @@ import { AuthService } from '../../../../core/auth/auth.service';
|
|||||||
import { AuthMethodType } from '../authMethods-type';
|
import { AuthMethodType } from '../authMethods-type';
|
||||||
import { renderAuthMethodFor } from '../authMethods-decorator';
|
import { renderAuthMethodFor } from '../authMethods-decorator';
|
||||||
import { AuthMethodModel } from '../../../../core/auth/models/auth-method.model';
|
import { AuthMethodModel } from '../../../../core/auth/models/auth-method.model';
|
||||||
|
import { InjectedAuthMethodModel } from '../../injectedAuthMethodModel/injectedAuthMethodModel';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* /users/sign-in
|
* /users/sign-in
|
||||||
@@ -85,7 +86,7 @@ export class LogInPasswordComponent implements OnDestroy, OnInit {
|
|||||||
*/
|
*/
|
||||||
private alive = true;
|
private alive = true;
|
||||||
|
|
||||||
@Input() authMethodModel: AuthMethodModel;
|
@Input() authMethodModel: InjectedAuthMethodModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
@@ -94,7 +95,7 @@ export class LogInPasswordComponent implements OnDestroy, OnInit {
|
|||||||
* @param {Store<State>} store
|
* @param {Store<State>} store
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
@Inject('authMethodModelProvider') public injectedAuthMethodModel: AuthMethodModel,
|
@Inject('authMethodModelProvider') public injectedAuthMethodModel: InjectedAuthMethodModel,
|
||||||
private authService: AuthService,
|
private authService: AuthService,
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: FormBuilder,
|
||||||
private store: Store<CoreState>
|
private store: Store<CoreState>
|
||||||
|
Reference in New Issue
Block a user