mirror of
https://github.com/gamaio/UnPS-API.git
synced 2024-12-21 09:42: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];
|
||||
$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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user