Fix display order of authentication methods

This commit is contained in:
Alexandre Vryghem
2023-08-02 00:00:37 +02:00
parent ca864379c8
commit 71cf66ecf4
20 changed files with 107 additions and 173 deletions

View File

@@ -6,10 +6,11 @@ import { EPerson } from '../../core/eperson/models/eperson.model';
import { createSuccessfulRemoteDataObject$ } from '../remote-data.utils';
import { AuthMethod } from '../../core/auth/models/auth.method';
import { hasValue } from '../empty.util';
import { AuthMethodType } from '../../core/auth/models/auth.method-type';
export const authMethodsMock = [
new AuthMethod('password'),
new AuthMethod('shibboleth', 'dspace.test/shibboleth')
export const authMethodsMock: AuthMethod[] = [
new AuthMethod(AuthMethodType.Password, 0),
new AuthMethod(AuthMethodType.Shibboleth, 1, 'dspace.test/shibboleth'),
];
export class AuthServiceStub {