@@ -134,7 +134,7 @@ export class LogInComponent implements OnInit, OnDestroy {
134134 filter ( routeData => ! ! routeData ) ,
135135 map ( data => data . isBackDoor ) ,
136136 ) ) ,
137- map ( ( [ methods , isBackdoor ] ) => this . filterAndSortAuthMethods ( methods , isBackdoor , ! environment . auth . enableAdminOnlyLogin ) ) ,
137+ map ( ( [ methods , isBackdoor ] ) => this . filterAndSortAuthMethods ( methods , isBackdoor , ! environment . auth . isPasswordLoginEnabledForAdminsOnly ) ) ,
138138 // ignore the ip authentication method when it's returned by the backend
139139 map ( ( authMethods : AuthMethod [ ] ) => uniqBy ( authMethods . filter ( a => a . authMethodType !== AuthMethodType . Ip ) , 'authMethodType' ) ) ,
140140 ) ;
@@ -165,13 +165,13 @@ export class LogInComponent implements OnInit, OnDestroy {
165165 ) ;
166166 }
167167
168- filterAndSortAuthMethods ( authMethods : AuthMethod [ ] , isBackdoor : boolean , isStandardLoginDisabled = false ) : AuthMethod [ ] {
168+ filterAndSortAuthMethods ( authMethods : AuthMethod [ ] , isBackdoor : boolean , isPasswordLoginEnabledForAdminsOnly = false ) : AuthMethod [ ] {
169169 return authMethods . filter ( ( authMethod : AuthMethod ) => {
170170 const methodComparison = ( authM ) => {
171171 if ( isBackdoor ) {
172172 return authM . authMethodType === AuthMethodType . Password ;
173173 }
174- if ( ! isStandardLoginDisabled ) {
174+ if ( ! isPasswordLoginEnabledForAdminsOnly ) {
175175 return authM . authMethodType !== AuthMethodType . Password ;
176176 }
177177 return true ;
0 commit comments