mirror of
https://github.com/gamaio/UnPS-API.git
synced 2024-12-21 09:42:40 +00:00
Fix sql query for register API user
Well kinda... I fixed one problem, but there's more... I don't know what might be wrong with it. This will take a little bit of troubleshooting x.x
This commit is contained in:
parent
ddcdecbec7
commit
7cba62ce3d
@ -324,7 +324,7 @@ class api{
|
||||
$api = $perms[3];
|
||||
|
||||
$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($apisql)) return 'ERROR: ['.$apidb->error.']';
|
||||
if(!$result = $apidb->query($sql)) return 'ERROR: ['.$apidb->error.']';
|
||||
return "Registered $appname for API use. Key: $key - ResetKey: $resetkey";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user