public function ForcePasswordChangeMapper::removeFirstTimeLogin in Force Password Change 2.0.x
Same name and namespace in other branches
- 8 src/Mapper/ForcePasswordChangeMapper.php \Drupal\force_password_change\Mapper\ForcePasswordChangeMapper::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.
Overrides ForcePasswordChangeMapperInterface::removeFirstTimeLogin
File
- src/
Mapper/ ForcePasswordChangeMapper.php, line 204
Class
Namespace
Drupal\force_password_change\MapperCode
public function removeFirstTimeLogin($uid) {
$this->connection
->query('DELETE FROM {force_password_change_uids} WHERE category= :category AND uid = :uid', [
':category' => 'first_login',
':uid' => $uid,
]);
}