File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1593,17 +1593,15 @@ public function getFilterForUserCount(): string {
15931593 return $ filter ;
15941594 }
15951595
1596- /**
1597- * @param string $name
1598- * @param string $password
1599- * @return bool
1600- */
1601- public function areCredentialsValid ($ name , $ password ) {
1596+ public function areCredentialsValid (string $ name , string $ password ): bool {
1597+ if ($ name === '' || $ password === '' ) {
1598+ return false ;
1599+ }
16021600 $ name = $ this ->helper ->DNasBaseParameter ($ name );
16031601 $ testConnection = clone $ this ->connection ;
16041602 $ credentials = [
16051603 'ldapAgentName ' => $ name ,
1606- 'ldapAgentPassword ' => $ password
1604+ 'ldapAgentPassword ' => $ password,
16071605 ];
16081606 if (!$ testConnection ->setConfiguration ($ credentials )) {
16091607 return false ;
You can’t perform that action at this time.
0 commit comments