mirror of https://github.com/MISP/MISP
Merge branch '2.4' into develop
commit
52909eeada
|
@ -919,7 +919,7 @@ class ACLComponent extends Component
|
|||
}
|
||||
return true;
|
||||
};
|
||||
$this->dynamicChecks['password_change_enabled'] = function (array $user) {
|
||||
$this->dynamicChecks['password_change_enabled'] = function ($user) {
|
||||
if (Configure::read('MISP.disable_user_password_change')) {
|
||||
throw new ForbiddenException('User password change has been disabled on this instance.');
|
||||
}
|
||||
|
@ -931,7 +931,7 @@ class ACLComponent extends Component
|
|||
}
|
||||
return true;
|
||||
};
|
||||
$this->dynamicChecks['password_forgotten_enabled'] = function (array $user) {
|
||||
$this->dynamicChecks['password_forgotten_enabled'] = function ($user) {
|
||||
if (empty(Configure::read('Security.allow_password_forgotten'))) {
|
||||
throw new ForbiddenException('Password reset has been disabled on this instance.');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue