public function ForcePasswordChangeService::addFirstTimeLogin 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::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
Namespace
Drupal\force_password_change\ServiceCode
public function addFirstTimeLogin($uid) {
$this->mapper
->addFirstTimeLogin($uid);
}