The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

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 ...@@ -226,9 +226,10 @@ class Manager implements \ZfcRbac\Identity\IdentityProviderInterface
*/ */
public function supportsPasswordChange($authMethod = null) public function supportsPasswordChange($authMethod = null)
{ {
if ($this->getAuth($authMethod)->supportsPasswordChange()) { if (isset($this->config->Authentication->change_password)
return isset($this->config->Authentication->change_password) && $this->config->Authentication->change_password
&& $this->config->Authentication->change_password; ) {
return $this->getAuth($authMethod)->supportsPasswordChange();
} }
return false; 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