Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit ebab797

Browse files
committed
Small tweak.
1 parent 11edb11 commit ebab797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AdldapAuthUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ protected function authenticateWithCredentials(array $credentials = [])
146146
$username = $this->getUsernameFromCredentials($credentials);
147147

148148
// Make sure we're connected to our LDAP server before we run any operations.
149-
if ($this->isConnected() && !empty($username)) {
149+
if ($username && $this->isConnected()) {
150150
// Due to having the ability of choosing which attribute we login users
151151
// with, we actually need to retrieve the user from our LDAP server
152152
// before hand so we can retrieve these attributes.

0 commit comments

Comments
 (0)