Skip to content
Snippets Groups Projects
Commit 94385413 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Potentially less expensive check.

parent a00ad0c4
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment