You are here

public function ForcePasswordChangeMapper::getFirstTimeLoginUids in Force Password Change 2.0.x

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

Retrieve a list of User IDs for users who have a pending forced password change on their first login.

Return value

array An array of User IDs of users who have a pending forced password change on their first login.

Overrides ForcePasswordChangeMapperInterface::getFirstTimeLoginUids

File

src/Mapper/ForcePasswordChangeMapper.php, line 214

Class

ForcePasswordChangeMapper

Namespace

Drupal\force_password_change\Mapper

Code

public function getFirstTimeLoginUids() {
  return $this->connection
    ->query('SELECT uid FROM {force_password_change_uids} WHERE category = :category', [
    ':category' => 'first_login',
  ])
    ->fetchCol();
}