Correct sql for register API user

New API users can now be created - Test sucessful
This commit is contained in:
Arctic Code 2013-07-26 23:21:29 -05:00
parent 7cba62ce3d
commit afbab7b3c6

View File

@ -323,7 +323,7 @@ class api{
$reg = $perms[2];
$api = $perms[3];
$sql = "INSERT INTO `users` (name, key, short, image, reg, api, email, resetkey) VALUES('$appname', '$key', '$short', '$image', '$reg', '$api', '$email', '$resetkey')";
$sql = "INSERT INTO `users` (`name`, `key`, `short`, `image`, `reg`, `api`, `email`, `resetkey`) VALUES ('$appname', '$key', '$short', '$image', '$reg', '$api', '$email', '$resetkey')";
if(!$result = $apidb->query($sql)) return 'ERROR: ['.$apidb->error.']';
return "Registered $appname for API use. Key: $key - ResetKey: $resetkey";
}