aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;