1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

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

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;