public function ForcePasswordChangeService::forceUserPasswordChange in Force Password Change 2.0.x
Same name and namespace in other branches
- 8 src/Service/ForcePasswordChangeService.php \Drupal\force_password_change\Service\ForcePasswordChangeService::forceUserPasswordChange()
Force a password change for a given user.
Parameters
int $uid: The User ID for the user who should be forced to change their password.
Overrides ForcePasswordChangeServiceInterface::forceUserPasswordChange
1 call to ForcePasswordChangeService::forceUserPasswordChange()
- ForcePasswordChangeService::forceUsersPasswordChange in src/
Service/ ForcePasswordChangeService.php - Force a password change for the given users.
File
- src/
Service/ ForcePasswordChangeService.php, line 90
Class
Namespace
Drupal\force_password_change\ServiceCode
public function forceUserPasswordChange($uid) {
$this->userData
->set('force_password_change', $uid, 'pending_force', 1);
}