mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Reworked query of hasSession
This commit is contained in:
parent
d5c8983293
commit
1d129e4af8
@ -76,16 +76,14 @@ interface Database
|
|||||||
* <code>
|
* <code>
|
||||||
* UPDATE oauth_sessions SET auth_code = $authCode, access_token =
|
* UPDATE oauth_sessions SET auth_code = $authCode, access_token =
|
||||||
* $accessToken, stage = $stage, last_updated = UNIX_TIMESTAMP(NOW()) WHERE
|
* $accessToken, stage = $stage, last_updated = UNIX_TIMESTAMP(NOW()) WHERE
|
||||||
* client_id = $clientId AND owner_type = $type AND owner_id = $typeId
|
* id = $sessionId
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param string $clientId The client ID
|
* @param string $sessionId The session ID
|
||||||
* @param string $type The session owner's type (default = "user")
|
|
||||||
* @param string $typeId The session owner's ID (default = "null")
|
|
||||||
* @param string $authCode The authorisation code (default = "null")
|
* @param string $authCode The authorisation code (default = "null")
|
||||||
* @param string $accessToken The access token (default = "null")
|
* @param string $accessToken The access token (default = "null")
|
||||||
* @param string $stage The stage of the session (default ="request")
|
* @param string $stage The stage of the session (default ="request")
|
||||||
* @return [type] [description]
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function updateSession(
|
public function updateSession(
|
||||||
$clientId,
|
$clientId,
|
||||||
|
Loading…
Reference in New Issue
Block a user