Change return message of API user creation

This commit is contained in:
Arctic Code 2013-07-26 22:55:14 -05:00
parent 86cdf9b488
commit ddcdecbec7
2 changed files with 2 additions and 2 deletions

View File

@ -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')";
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)

View File

@ -95,7 +95,7 @@ Currently, the API supports ten functions:
- The user [USERNAME] already exists.
- You are not authorized to register users
- 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
- Reset API Key:
- APIKey reset. Key: [APIKEY]