From 745cdb1c22401bd62cf8e3d9754bcaceab2617f3 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 24 Sep 2008 15:00:17 +0000 Subject: Create keypair code added git-svn-id: https://code.elgg.org/elgg/trunk@2113 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/api.php b/engine/lib/api.php index 04a1a971f..d9ef87f78 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -694,7 +694,7 @@ $public = sha1(rand().$site_guid.microtime()); $secret = sha1(rand().$site_guid.microtime().$public); - if (insert_data("INSERT into {$CONFIG->dbprefix}api_users (site_guid, api_key, secret) values ($site_guid, '$public', '$private')")) + if (insert_data("INSERT into {$CONFIG->dbprefix}api_users (site_guid, api_key, secret) values ($site_guid, '$public', '$secret')")) return get_api_user($site_guid, $public); return false; -- cgit v1.2.3