public function ForcePasswordChangeService::removePendingForce 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::removePendingForce()
Remove a pending force for a given user.
Parameters
int $uid: The User ID of the user whose pending password force should be removed.
Overrides ForcePasswordChangeServiceInterface::removePendingForce
File
- src/
Service/ ForcePasswordChangeService.php, line 235
Class
Namespace
Drupal\force_password_change\ServiceCode
public function removePendingForce($uid) {
$this->userData
->set('force_password_change', $uid, 'pending_force', 0);
}