mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
Comment changes
This commit is contained in:
parent
45bfcffdc2
commit
2ba9a1d279
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user