Skip to content

Commit

Permalink
Explicitly check if username is false or not
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil <akhil@e.email>
  • Loading branch information
akhil1508 committed Mar 21, 2024
1 parent eb325f0 commit 2c85165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/user_ldap/lib/User_LDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function getLDAPUserByLoginName($loginName) {
*/
public function checkPassword($uid, $password) {
$username = $this->loginName2UserName($uid, true);
if (!$username) {
if ($username === false) {
return false;
}
$dn = $this->access->username2dn($username);
Expand Down

0 comments on commit 2c85165

Please sign in to comment.