Update application/security/LoginManager.php
Co-authored-by: ArthurHoaro <arthur@hoa.ro>
This commit is contained in:
parent
46846fd4fc
commit
21e5df5ee8
1 changed files with 4 additions and 2 deletions
|
@ -147,8 +147,10 @@ public function checkCredentials($remoteIp, $clientIpId, $login, $password)
|
||||||
|
|
||||||
// Check credentials
|
// Check credentials
|
||||||
try {
|
try {
|
||||||
if (($this->configManager->get('ldap.host') != "" && $this->checkCredentialsFromLdap($login, $password))
|
$useLdapLogin = !empty($this->configManager->get('ldap.host'));
|
||||||
|| ($this->configManager->get('ldap.host') == "" && $this->checkCredentialsFromLocalConfig($login, $password))) {
|
if ((false === $useLdapLogin && $this->checkCredentialsFromLocalConfig($login, $password))
|
||||||
|
|| (true === $useLdapLogin && $this->checkCredentialsFromLdap($login, $password))
|
||||||
|
) {
|
||||||
$this->sessionManager->storeLoginInfo($clientIpId);
|
$this->sessionManager->storeLoginInfo($clientIpId);
|
||||||
logm(
|
logm(
|
||||||
$this->configManager->get('resource.log'),
|
$this->configManager->get('resource.log'),
|
||||||
|
|
Loading…
Reference in a new issue