You are here

public function ForcePasswordChangeMapper::removeFirstTimeLogin in Force Password Change 8

Same name and namespace in other branches
  1. 2.0.x src/Mapper/ForcePasswordChangeMapper.php \Drupal\force_password_change\Mapper\ForcePasswordChangeMapper::removeFirstTimeLogin()

*

Overrides ForcePasswordChangeMapperInterface::removeFirstTimeLogin

File

src/Mapper/ForcePasswordChangeMapper.php, line 215

Class

ForcePasswordChangeMapper

Namespace

Drupal\force_password_change\Mapper

Code

public function removeFirstTimeLogin($uid) {
  $this->connection
    ->query('DELETE FROM {force_password_change_uids} WHERE category= :category AND uid = :uid', [
    ':category' => 'first_login',
    ':uid' => $uid,
  ]);
}