You are here

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

Remove the mark for a user who was forced to change their password on their first login.

Parameters

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

Overrides ForcePasswordChangeServiceInterface::removeFirstTimeLogin

File

src/Service/ForcePasswordChangeService.php, line 283

Class

ForcePasswordChangeService

Namespace

Drupal\force_password_change\Service

Code

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