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 @@ class LoginManager
|
|||
|
||||
// Check credentials
|
||||
try {
|
||||
if (($this->configManager->get('ldap.host') != "" && $this->checkCredentialsFromLdap($login, $password))
|
||||
|| ($this->configManager->get('ldap.host') == "" && $this->checkCredentialsFromLocalConfig($login, $password))) {
|
||||
$useLdapLogin = !empty($this->configManager->get('ldap.host'));
|
||||
if ((false === $useLdapLogin && $this->checkCredentialsFromLocalConfig($login, $password))
|
||||
|| (true === $useLdapLogin && $this->checkCredentialsFromLdap($login, $password))
|
||||
) {
|
||||
$this->sessionManager->storeLoginInfo($clientIpId);
|
||||
logm(
|
||||
$this->configManager->get('resource.log'),
|
||||
|
|
Loading…
Reference in a new issue