diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-24 15:00:17 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-24 15:00:17 +0000 |
commit | 745cdb1c22401bd62cf8e3d9754bcaceab2617f3 (patch) | |
tree | d1cd987c31979f9796525ba1a561826a26f9d560 /engine | |
parent | 6acda82bb3c881f9b44e6236912aefe8cc68543f (diff) | |
download | elgg-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.php | 2 |
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; |