public function TokenAuthUser::setLastLoginTime in Simple OAuth (OAuth2) & OpenID Connect 8.3
Same name and namespace in other branches
- 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setLastLoginTime()
- 8 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setLastLoginTime()
- 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setLastLoginTime()
- 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setLastLoginTime()
Sets the UNIX timestamp when the user last logged in.
Parameters
int $timestamp: Timestamp of the last login time.
Return value
$this The called user entity.
Overrides UserInterface::setLastLoginTime
File
- src/
Authentication/ TokenAuthUser.php, line 790
Class
- TokenAuthUser
- The decorated user class with token information.
Namespace
Drupal\simple_oauth\AuthenticationCode
public function setLastLoginTime($timestamp) {
return $this->subject
->setLastLoginTime($timestamp);
}