This commit is contained in:
Habeas Codice 2015-05-24 09:30:31 -07:00
parent b15a68f05d
commit 1354616787

View File

@ -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)