From d9066ef26b5c44eddd4150f280e039a41bdbc1f0 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 21 May 2018 13:37:55 -0700 Subject: not null violation oauth1 --- include/oauth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/oauth.php') diff --git a/include/oauth.php b/include/oauth.php index a3c52bf27..845ec4558 100644 --- a/include/oauth.php +++ b/include/oauth.php @@ -79,7 +79,7 @@ class ZotOAuth1DataStore extends OAuth1DataStore { $k = $consumer; } - $r = q("INSERT INTO tokens (id, secret, client_id, auth_scope, expires) VALUES ('%s','%s','%s','%s', %d)", + $r = q("INSERT INTO tokens (id, secret, client_id, auth_scope, expires, uid) VALUES ('%s','%s','%s','%s', %d, 0)", dbesc($key), dbesc($sec), dbesc($k), -- cgit v1.2.3