Comment changes

This commit is contained in:
Alex Bilbie 2012-07-06 19:31:36 +01:00
parent 45bfcffdc2
commit 2ba9a1d279

View File

@ -239,7 +239,8 @@ class Server
{ {
$authCode = $this->generateCode(); $authCode = $this->generateCode();
// Update an existing session with the new code // If an access token exists then update the existing session with the
// new authorisation code otherwise create a new session
if ($access_token !== null) { if ($access_token !== null) {
$this->db->updateSession( $this->db->updateSession(
@ -251,7 +252,7 @@ class Server
'request' 'request'
); );
} else { // Create a new oauth session } else {
// Delete any existing sessions just to be sure // Delete any existing sessions just to be sure
$this->db->deleteSession($clientId, $type, $typeId); $this->db->deleteSession($clientId, $type, $typeId);