Fixed LDAP authentication + unified app config options: authenticate_settings, security and ldap
This commit is contained in:
parent
4b49c95b20
commit
f3bdeb2493
17 changed files with 105 additions and 245 deletions
|
|
@ -21,17 +21,19 @@ class LoginIsDisabled
|
|||
{
|
||||
/**
|
||||
* Checks if
|
||||
*
|
||||
* @param $method
|
||||
* @param array $params
|
||||
*
|
||||
* @return mixed|null
|
||||
*/
|
||||
public function __call($method, $params = [])
|
||||
{
|
||||
unset($method, $params);
|
||||
|
||||
$config = Config::getInstance();
|
||||
$state = (bool) $config->get('php-censor.authentication_settings.state', false);
|
||||
$config = Config::getInstance();
|
||||
$disableAuth = (boolean)$config->get('php-censor.security.disable_auth', false);
|
||||
|
||||
return (false !== $state);
|
||||
return $disableAuth;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue