public function ForcePasswordChangeService::setChangedTimeForUser 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::setChangedTimeForUser()
Set the last time a user's password was changed to the current timestamp.
Parameters
int $uid: The User ID of the user whose last password time change should be registered.
Overrides ForcePasswordChangeServiceInterface::setChangedTimeForUser
File
- src/
Service/ ForcePasswordChangeService.php, line 228
Class
Namespace
Drupal\force_password_change\ServiceCode
public function setChangedTimeForUser($uid) {
$this->userData
->set('force_password_change', $uid, 'last_change', $this
->getRequestTime());
}