Services/Sync/Server/Archived/0.3/API/Registration: Difference between revisions

From MozillaWiki
< Services‎ | Sync‎ | Server‎ | Archived‎ | 0.3/API
Jump to navigation Jump to search
Line 11: Line 11:
== Creating a User Account ==
== Creating a User Account ==


POST '''https://''server''/''prefix''/new'
POST '''https://''server''/''prefix''/new


{| width="100%" cellpadding="3"
{| width="100%" cellpadding="3"
Line 35: Line 35:


The captcha is optional and is activated by setting the WEAVE_REGISTER_USE_CAPTCHA variable in the apache config. If it is set, issuing a GET request to the above URL (no parameters) will provide the html for the captcha.
The captcha is optional and is activated by setting the WEAVE_REGISTER_USE_CAPTCHA variable in the apache config. If it is set, issuing a GET request to the above URL (no parameters) will provide the html for the captcha.


== Changing a User Password ==
== Changing a User Password ==

Revision as of 00:05, 8 November 2008

Weave 0.3 Registration API

Release Date: TBD


Checking for a Username

GET https://server/prefix/check/username

returns 1 if the username exists, 0 otherwise

Creating a User Account

POST https://server/prefix/new

Term Description
uid The username to be created.
password The requested password
email Email address associated with the account (for password recovery)
recaptcha_challenge_field (optional) challenge field from the captcha
recaptcha_response_field (optional) response field from the captcha

The captcha is optional and is activated by setting the WEAVE_REGISTER_USE_CAPTCHA variable in the apache config. If it is set, issuing a GET request to the above URL (no parameters) will provide the html for the captcha.

Changing a User Password

POST https://server/prefix/chpwd

Term Description
uid The username to be created.
password The old password
new The new password

Response Codes

The API uses the standard Weave Response Codes