More style formatting fixes.

This commit is contained in:
Ben Tyger 2021-05-22 11:01:25 -04:00
parent d3c556234b
commit 53761bdc42
2 changed files with 5 additions and 3 deletions

View file

@ -85,7 +85,7 @@ abstract class AuthController extends Controller
//Dynamic LDAP User Binding
if (@is_string($this->config['ldap']['search_filter'])) {
//Replace ???? with username
$searchFilter = str_replace('????', ldap_escape($username,null,LDAP_ESCAPE_FILTER), $this->config['ldap']['search_filter']);
$searchFilter = str_replace('????', ldap_escape($username, null, LDAP_ESCAPE_FILTER), $this->config['ldap']['search_filter']);
$ldapAddributes = array ('dn');
$this->logger->debug("LDAP Search filter: $searchFilter");
$ldapSearchResp = ldap_search(

View file

@ -169,7 +169,9 @@ class LoginController extends AuthController
return $userQuery->get($request, $this->database->getPdo()->lastInsertId());
}
if ($server) ldap_close($server);
if ($server) {
ldap_close($server);
}
if (!password_verify($password, $dbUser->password)) {
$userQuery = make(UserQuery::class);