You are here

public function ForcePasswordChangeService::addFirstTimeLogin 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::addFirstTimeLogin()

Mark a user as having been forced to change their password on their first login.

Parameters

int $uid: The User ID of the user who has been forced to change their password on first login. Note that this is metadata only - the force still needs to be performed through other actions.

Overrides ForcePasswordChangeServiceInterface::addFirstTimeLogin

File

src/Service/ForcePasswordChangeService.php, line 276

Class

ForcePasswordChangeService

Namespace

Drupal\force_password_change\Service

Code

public function addFirstTimeLogin($uid) {
  $this->mapper
    ->addFirstTimeLogin($uid);
}