diff options
Diffstat (limited to 'apps/user_ldap/user_ldap.php')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 41e2926605e..850ca0df995 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -77,11 +77,6 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface { } $dn = $ldap_users[0]; - //are the credentials OK? - if(!$this->areCredentialsValid($dn, $password)) { - return false; - } - //do we have a username for him/her? $ocname = $this->dn2username($dn); @@ -90,6 +85,11 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface { $this->updateQuota($dn); $this->updateEmail($dn); + //are the credentials OK? + if(!$this->areCredentialsValid($dn, $password)) { + return false; + } + //give back the display name return $ocname; } |