mirror of
https://github.com/gamaio/UnPS-API.git
synced 2024-12-22 02:02:40 +00:00
Correct sql for register API user
New API users can now be created - Test sucessful
This commit is contained in:
parent
7cba62ce3d
commit
afbab7b3c6
@ -323,7 +323,7 @@ class api{
|
|||||||
$reg = $perms[2];
|
$reg = $perms[2];
|
||||||
$api = $perms[3];
|
$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.']';
|
if(!$result = $apidb->query($sql)) return 'ERROR: ['.$apidb->error.']';
|
||||||
return "Registered $appname for API use. Key: $key - ResetKey: $resetkey";
|
return "Registered $appname for API use. Key: $key - ResetKey: $resetkey";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user