From d5526833cb1163299a5a8f2211247bb5ffd848fd Mon Sep 17 00:00:00 2001 From: Jacq Date: Tue, 14 Jul 2015 23:55:06 +0200 Subject: [PATCH] Fixed configurable usernamefield --- src/LdapAuthUserProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LdapAuthUserProvider.php b/src/LdapAuthUserProvider.php index 863c8ae..5dd7c0d 100644 --- a/src/LdapAuthUserProvider.php +++ b/src/LdapAuthUserProvider.php @@ -50,7 +50,7 @@ public function retrieveByID($identifier) $userNameField = $this->getUsernameField(); if ($this->model) { - $model = $this->createModel()->newQuery()->find($identifier); + $model = $this->createModel()->newQuery()->where($this->getUsernameField(), $identifier)->first(); } if (isset($model)) {