one more
This commit is contained in:
parent
b15a68f05d
commit
1354616787
@ -104,12 +104,12 @@ class FKOAuthDataStore extends OAuthDataStore {
|
|||||||
$key = $this->gen_token();
|
$key = $this->gen_token();
|
||||||
$sec = $this->gen_token();
|
$sec = $this->gen_token();
|
||||||
|
|
||||||
$r = q("INSERT INTO tokens (id, secret, client_id, scope, expires, uid) VALUES ('%s','%s','%s','%s', UNIX_TIMESTAMP()+%d, %d)",
|
$r = q("INSERT INTO tokens (id, secret, client_id, scope, expires, uid) VALUES ('%s','%s','%s','%s', %d, %d)",
|
||||||
dbesc($key),
|
dbesc($key),
|
||||||
dbesc($sec),
|
dbesc($sec),
|
||||||
dbesc($consumer->key),
|
dbesc($consumer->key),
|
||||||
'access',
|
'access',
|
||||||
intval(ACCESS_TOKEN_DURATION),
|
time()+intval(ACCESS_TOKEN_DURATION),
|
||||||
intval($uverifier));
|
intval($uverifier));
|
||||||
|
|
||||||
if ($r)
|
if ($r)
|
||||||
|
Reference in New Issue
Block a user