@@ -99,7 +99,7 @@ export class LogInComponent implements OnInit, OnDestroy {
9999 filter ( routeData => ! ! routeData ) ,
100100 map ( data => data . isBackDoor ) ,
101101 ) ) ,
102- map ( ( [ methods , isBackdoor ] ) => this . filterAndSortAuthMethods ( methods , isBackdoor , ! environment . auth . enableAdminOnlyLogin ) ) ,
102+ map ( ( [ methods , isBackdoor ] ) => this . filterAndSortAuthMethods ( methods , isBackdoor , ! environment . auth . isPasswordLoginEnabledForAdminsOnly ) ) ,
103103 // ignore the ip authentication method when it's returned by the backend
104104 map ( ( authMethods : AuthMethod [ ] ) => uniqBy ( authMethods . filter ( a => a . authMethodType !== AuthMethodType . Ip ) , 'authMethodType' ) )
105105 ) ;
@@ -130,13 +130,13 @@ export class LogInComponent implements OnInit, OnDestroy {
130130 ) ;
131131 }
132132
133- filterAndSortAuthMethods ( authMethods : AuthMethod [ ] , isBackdoor : boolean , isStandardLoginDisabled = false ) : AuthMethod [ ] {
133+ filterAndSortAuthMethods ( authMethods : AuthMethod [ ] , isBackdoor : boolean , isPasswordLoginEnabledForAdminsOnly = false ) : AuthMethod [ ] {
134134 return authMethods . filter ( ( authMethod : AuthMethod ) => {
135135 const methodComparison = ( authM ) => {
136136 if ( isBackdoor ) {
137137 return authM . authMethodType === AuthMethodType . Password ;
138138 }
139- if ( ! isStandardLoginDisabled ) {
139+ if ( ! isPasswordLoginEnabledForAdminsOnly ) {
140140 return authM . authMethodType !== AuthMethodType . Password ;
141141 }
142142 return true ;
0 commit comments