function openid_connect_set_password_access in OpenID Connect / OAuth client 8
Same name and namespace in other branches
- 7 openid_connect.module \openid_connect_set_password_access()
Find whether the user is allowed to change their own password.
Parameters
object $account: A user account object.
Return value
bool TRUE if access is granted, FALSE otherwise.
Deprecated
in openid_connect:8.x-1.0-beta6 and is removed from openid_connect:8.x-2.0. Use Drupal\openid_connect\OpenIDConnect::hasSetPasswordAccess() or \Drupal::service('openid_connect.openid_connect')->hasSetPasswordAccess() instead.
See also
https://www.drupal.org/project/openid_connect/issues/2961938
File
- ./
openid_connect.module, line 341 - Hook implementations of the OpenID Connect module.
Code
function openid_connect_set_password_access($account) {
@trigger_error("openid_connect_set_password_access() is deprecated in openid_connect:8.x-1.0-beta6 and is removed from openid_connect:8.x-2.0. Use Drupal\\openid_connect\\OpenIDConnect::hasSetPasswordAccess() or \\Drupal::service('openid_connect.openid_connect')->hasSetPasswordAccess() instead. See https://www.drupal.org/project/openid_connect/issues/2961938", E_USER_DEPRECATED);
return \Drupal::service('openid_connect.openid_connect')
->hasSetPasswordAccess($account);
}