You are here

public function ForcePasswordChangeService::registerForcePasswordTime in Force Password Change 2.0.x

Same name and namespace in other branches
  1. 8 src/Service/ForcePasswordChangeService.php \Drupal\force_password_change\Service\ForcePasswordChangeService::registerForcePasswordTime()

Register the time at which a user has been forced to change their password.

Parameters

int $uid: The User ID for the user who has had a password change forced.

Overrides ForcePasswordChangeServiceInterface::registerForcePasswordTime

1 call to ForcePasswordChangeService::registerForcePasswordTime()
ForcePasswordChangeService::forceUsersPasswordChange in src/Service/ForcePasswordChangeService.php
Force a password change for the given users.

File

src/Service/ForcePasswordChangeService.php, line 97

Class

ForcePasswordChangeService

Namespace

Drupal\force_password_change\Service

Code

public function registerForcePasswordTime($uid) {
  $this->userData
    ->set('force_password_change', $uid, 'last_force', $this
    ->getRequestTime());
}