Skip to content

Commit 2c85165

Browse files
committed
Explicitly check if username is false or not
Signed-off-by: Akhil <akhil@e.email>
1 parent eb325f0 commit 2c85165

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/user_ldap/lib/User_LDAP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function getLDAPUserByLoginName($loginName) {
180180
*/
181181
public function checkPassword($uid, $password) {
182182
$username = $this->loginName2UserName($uid, true);
183-
if (!$username) {
183+
if ($username === false) {
184184
return false;
185185
}
186186
$dn = $this->access->username2dn($username);

0 commit comments

Comments
 (0)