aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-24 15:00:17 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-24 15:00:17 +0000
commit745cdb1c22401bd62cf8e3d9754bcaceab2617f3 (patch)
treed1cd987c31979f9796525ba1a561826a26f9d560 /engine
parent6acda82bb3c881f9b44e6236912aefe8cc68543f (diff)
downloadelgg-745cdb1c22401bd62cf8e3d9754bcaceab2617f3.tar.gz
elgg-745cdb1c22401bd62cf8e3d9754bcaceab2617f3.tar.bz2
Create keypair code added
git-svn-id: https://code.elgg.org/elgg/trunk@2113 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/api.php2
1 files changed, 1 insertions, 1 deletions
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;