mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge remote-tracking branch 'templates/dspace-7.6' into fix-display-order-authentication-methods_contribute-7.6
# Conflicts: # src/app/shared/log-in/log-in.component.html # src/app/shared/log-in/methods/log-in-external-provider/log-in-external-provider.component.spec.ts # src/app/shared/log-in/methods/oidc/log-in-oidc.component.html # src/app/shared/log-in/methods/oidc/log-in-oidc.component.spec.ts # src/app/shared/log-in/methods/orcid/log-in-orcid.component.html # src/app/shared/log-in/methods/password/log-in-password.component.ts # src/app/shared/log-in/methods/shibboleth/log-in-shibboleth.component.html # src/app/shared/log-in/methods/shibboleth/log-in-shibboleth.component.spec.ts
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
import { hasValue } from '../empty.util';
|
||||
import { AuthService } from '../../core/auth/auth.service';
|
||||
import { CoreState } from '../../core/core-state.model';
|
||||
import { AuthMethodType } from '../../core/auth/models/auth.method-type';
|
||||
|
||||
/**
|
||||
* /users/sign-in
|
||||
@@ -34,7 +35,7 @@ export class LogInComponent implements OnInit {
|
||||
* The list of authentication methods available
|
||||
* @type {AuthMethod[]}
|
||||
*/
|
||||
public authMethods: Observable<AuthMethod[]>;
|
||||
public authMethods: AuthMethod[];
|
||||
|
||||
/**
|
||||
* Whether user is authenticated.
|
||||
@@ -55,9 +56,12 @@ export class LogInComponent implements OnInit {
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
this.authMethods = this.store.pipe(
|
||||
this.store.pipe(
|
||||
select(getAuthenticationMethods),
|
||||
);
|
||||
).subscribe(methods => {
|
||||
// ignore the ip authentication method when it's returned by the backend
|
||||
this.authMethods = methods.filter(a => a.authMethodType !== AuthMethodType.Ip);
|
||||
});
|
||||
|
||||
// set loading
|
||||
this.loading = this.store.pipe(select(isAuthenticationLoading));
|
||||
|
Reference in New Issue
Block a user