mirror of
https://github.com/gamaio/UnPS-API.git
synced 2024-12-21 17:52:40 +00:00
Change return message of API user creation
This commit is contained in:
parent
86cdf9b488
commit
ddcdecbec7
@ -325,7 +325,7 @@ class api{
|
|||||||
|
|
||||||
$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($apisql)) return 'ERROR: ['.$apidb->error.']';
|
if(!$result = $apidb->query($apisql)) return 'ERROR: ['.$apidb->error.']';
|
||||||
return "Registered $name for API use. Key: $key - ResetKey (KEEP THIS SAFE AND SECRET): $resetkey";
|
return "Registered $appname for API use. Key: $key - ResetKey: $resetkey";
|
||||||
}
|
}
|
||||||
|
|
||||||
// End register functions, begin reset functions (reset apikey, reset user password)
|
// End register functions, begin reset functions (reset apikey, reset user password)
|
||||||
|
@ -95,7 +95,7 @@ Currently, the API supports ten functions:
|
|||||||
- The user [USERNAME] already exists.
|
- The user [USERNAME] already exists.
|
||||||
- You are not authorized to register users
|
- You are not authorized to register users
|
||||||
- Register API User:
|
- Register API User:
|
||||||
- Registered [APPNAME] for API use. Key: [APIKEY] - ResetKey (KEEP THIS SAFE AND SECRET): [RESET KEY]
|
- Registered [APPNAME] for API use. Key: [APIKEY] - ResetKey: [RESET KEY]
|
||||||
- You are not authorized to register to use the API
|
- You are not authorized to register to use the API
|
||||||
- Reset API Key:
|
- Reset API Key:
|
||||||
- APIKey reset. Key: [APIKEY]
|
- APIKey reset. Key: [APIKEY]
|
||||||
|
Loading…
Reference in New Issue
Block a user