diff --git a/module/VuFind/src/VuFind/Auth/Manager.php b/module/VuFind/src/VuFind/Auth/Manager.php index da5dc330c3dd314e53822d924eeded2c7fa29ce1..6f51a646ef9c3bea732691a13adc2afc37d0a5b4 100644 --- a/module/VuFind/src/VuFind/Auth/Manager.php +++ b/module/VuFind/src/VuFind/Auth/Manager.php @@ -226,9 +226,10 @@ class Manager implements \ZfcRbac\Identity\IdentityProviderInterface */ public function supportsPasswordChange($authMethod = null) { - if ($this->getAuth($authMethod)->supportsPasswordChange()) { - return isset($this->config->Authentication->change_password) - && $this->config->Authentication->change_password; + if (isset($this->config->Authentication->change_password) + && $this->config->Authentication->change_password + ) { + return $this->getAuth($authMethod)->supportsPasswordChange(); } return false; }