diff --git a/code/authenticator/RESTfulAPI_TokenAuthenticator.php b/code/authenticator/RESTfulAPI_TokenAuthenticator.php index f9df4b1..5689ffe 100644 --- a/code/authenticator/RESTfulAPI_TokenAuthenticator.php +++ b/code/authenticator/RESTfulAPI_TokenAuthenticator.php @@ -421,7 +421,10 @@ private function validateAPIToken($token) } //all good, log Member in if (is_a($tokenOwner, 'Member')) { - $tokenOwner->logIn(); + # $tokenOwner->logIn(); + # this is a login without the logging + $tokenOwner::session_regenerate_id(); + Session::set("loggedInAs", $tokenOwner->ID); } return true;