diff options
Diffstat (limited to 'app/Model/Ldap.php')
-rw-r--r-- | app/Model/Ldap.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Model/Ldap.php b/app/Model/Ldap.php index dabcd5ff..007f7171 100644 --- a/app/Model/Ldap.php +++ b/app/Model/Ldap.php @@ -73,8 +73,7 @@ class Ldap extends Base */ public function create($username, $name, $email) { - $userModel = new User($this->db, $this->event); - $user = $userModel->getByUsername($username); + $user = $this->user->getByUsername($username); // There is an existing user account if ($user) { |