Skip to content

Commit

Permalink
Fix spacing
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil <[email protected]>
  • Loading branch information
akhil1508 committed Jan 17, 2023
1 parent 41dbdc0 commit 0f73108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/user_ldap/lib/User_LDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function loginName2UserName($loginName, bool $forceLdapRefetch = false) {
}
$username = $user->getUsername();
$this->access->connection->writeToCache($cacheKey, $username);
if($forceLdapRefetch) {
if ($forceLdapRefetch) {
$user->processAttributes($ldapRecord);
}
return $username;
Expand Down Expand Up @@ -181,7 +181,7 @@ public function getLDAPUserByLoginName($loginName) {
*/
public function checkPassword($uid, $password) {
$username = $this->loginName2UserName($uid, true);
if(!$username) {
if (!$username) {
return false;
}
$dn = $this->access->username2dn($username);
Expand Down

0 comments on commit 0f73108

Please sign in to comment.