Software / code / prosody-modules
Comparison
mod_register_json/README.markdown @ 2876:ea6b5321db50
README files: Fix typos
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 04 Feb 2018 16:05:27 +0100 |
| parent | 1803:4d73a1a6ba68 |
| child | 3291:4c3230c22c18 |
comparison
equal
deleted
inserted
replaced
| 2875:c3a039972b74 | 2876:ea6b5321db50 |
|---|---|
| 25 Where the encoded content is this (example) JSON Array: | 25 Where the encoded content is this (example) JSON Array: |
| 26 | 26 |
| 27 {"username":"usernameofchoice","password":"theuserpassword","ip":"theremoteaddroftheuser","mail":"usermail@usermaildomain.tld","auth\_token":"yourauthtokenofchoice"}\</code\> | 27 {"username":"usernameofchoice","password":"theuserpassword","ip":"theremoteaddroftheuser","mail":"usermail@usermaildomain.tld","auth\_token":"yourauthtokenofchoice"}\</code\> |
| 28 | 28 |
| 29 Your form implementation needs to pass **all** parameters, the | 29 Your form implementation needs to pass **all** parameters, the |
| 30 auth\_token is needed to prevent misuses, if the request is successfull | 30 auth\_token is needed to prevent misuses, if the request is successful |
| 31 the server will answer with status code 200 and with the body of the | 31 the server will answer with status code 200 and with the body of the |
| 32 response containing the token which your web app can send via e-mail to | 32 response containing the token which your web app can send via e-mail to |
| 33 the user to complete the registration. | 33 the user to complete the registration. |
| 34 | 34 |
| 35 Else, it will reply with the following http error codes: | 35 Else, it will reply with the following http error codes: |