src/Synapse/OAuth2/OAuthController.php
protected function setLastLogin($userId)
    {
        $user = $this->userService->findById($userId);

        $result = $this->userService->update($user, [
            'last_login' => time()
        ]);
    }
protected function setLastLogin($userId)
    {
        $user = $this->userService->findById($userId);

        $result = $this->userService->update($user, [
            'last_login' => time()
        ]);
    }
protected function setLastLogin ( $ userId ) { $ user = $ this -> userService -> findById ( $ userId ) ; $ result = $ this -> userService -> update ( $ user , [ 'last_login' => time ( ) ] ) ; }
Set the last_login timestamp in the database

@param string $userId
Set the last_login timestamp in the database