Add apidoc comments for new usertable actions

This commit is contained in:
Starbeamrainbowlabs 2018-05-15 19:32:45 +01:00
parent b4a25438d5
commit 8927674b5a
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 19 additions and 0 deletions

View File

@ -71,6 +71,15 @@ register_module([
exit(page_renderer::render_main("User Table - $settings->sitename", $content));
});
/**
* @api {post} ?action=user-add Add a user
* @apiName UserAdd
* @apiGroup Settings
* @apiPermission Moderator
*
* @apiParam {string} user The username for the new user.
* @apiParam {string} email Optional. Specifies the email address for the new user account.
*/
/*
* ██ ██ ███████ ███████ ██████ █████ ██████ ██████
@ -153,6 +162,16 @@ https://github.com/sbrl/Pepperminty-Wiki/
exit(page_renderer::render_main("Add User - $settings->sitename", $content));
});
/**
* @api {post} ?action=user-add Set a user's password
* @apiName UserAdd
* @apiGroup Settings
* @apiPermission Moderator
*
* @apiParam {string} user The username of the accunt to set the password for.
* @apiParam {string} new-pass The new password for the specified username.
*/
add_action("set-password", function() {
global $env, $settings;