diff options
author | Habeas Codice <habeascodice@federated.social> | 2015-05-24 09:30:31 -0700 |
---|---|---|
committer | Habeas Codice <habeascodice@federated.social> | 2015-05-24 09:30:31 -0700 |
commit | 13546167877322afa274a2540656f525e55d3b48 (patch) | |
tree | c15e100ffb9361a4bd6394557e07821e89ee4f0a /include | |
parent | b15a68f05db382d23b749428a04fe39cc6c156ad (diff) | |
download | volse-hubzilla-13546167877322afa274a2540656f525e55d3b48.tar.gz volse-hubzilla-13546167877322afa274a2540656f525e55d3b48.tar.bz2 volse-hubzilla-13546167877322afa274a2540656f525e55d3b48.zip |
one more
Diffstat (limited to 'include')
-rw-r--r-- | include/oauth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/oauth.php b/include/oauth.php index 8634f9c8a..a9509c68e 100644 --- a/include/oauth.php +++ b/include/oauth.php @@ -104,12 +104,12 @@ class FKOAuthDataStore extends OAuthDataStore { $key = $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($sec), dbesc($consumer->key), 'access', - intval(ACCESS_TOKEN_DURATION), + time()+intval(ACCESS_TOKEN_DURATION), intval($uverifier)); if ($r) |