Update prosody-modules (mod_muc_moderation, mod_auth_http)

This commit is contained in:
John Livingston
2022-01-05 01:09:55 +01:00
parent 8ac16b6bdf
commit cf8a013195
4 changed files with 41 additions and 58 deletions

View File

@ -58,54 +58,13 @@ and `user_exists`. Unsupported methods should return a HTTP status code
of `501 Not Implemented`, but other error codes will also be handled by
Prosody.
### register
**HTTP method:**
: POST
**Success codes:**
: 201
**Error codes:**
: 409 (user exists)
### check_password
**HTTP method:**
: GET
**Success codes:**
: 200
**Response:**
: A text string of `true` if the user exists, or `false` otherwise.
### user_exists
**HTTP method:**
: GET
**Success codes:**
: 200
**Response:**
: A text string of `true` if the user exists, or `false` otherwise.
### set_password
**HTTP method:**
: POST
**Success codes:**
: 200, 201, or 204
### remove_user
**HTTP method:**
: POST
**Success codes:**
: 200, 201 or 204
Method HTTP method Success codes Error codes Response
-------- ---- --- ----------------- -----------------------------------------------------------------
register POST 201 409 (user exists)
check\_password GET 200 A text string of `true` if the user exists, or `false` otherwise.
user\_exists GET 200 A text string of `true` if the user exists, or `false` otherwise.
set\_password POST 200, 201 or 204
remove\_user POST 200, 201 or 204
## Examples