Skip to content

Commit

Permalink
Merge pull request #79 from oetiker/patch-2
Browse files Browse the repository at this point in the history
do not record login event for every tokenAuth
  • Loading branch information
colymba authored Jun 12, 2017
2 parents fd3c010 + 4ac0cc6 commit 5833442
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/authenticator/RESTfulAPI_TokenAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5833442

Please sign in to comment.