X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=www%2Fdoc%2Findex.html;h=6bc071e250aa31d0029239370e6f55a127bab152;hb=0db9b1f8be6ebaac73c53f174d0b8527a09771d1;hp=d910f7dc4f00f80460a80022503cfd3571a2e277;hpb=7a618c2e7e80b87b6462efd9b953e3297029c39e;p=blerg.git diff --git a/www/doc/index.html b/www/doc/index.html index d910f7d..6bc071e 100644 --- a/www/doc/index.html +++ b/www/doc/index.html @@ -40,6 +40,7 @@ C.
  • /unsubscribe/(user) - Unsubscribe from a user's updates
  • /feed - Get updates for subscribed users
  • /feedinfo, /feedinfo/(user) - Get subscription status
  • +
  • /passwd - Change a user's password
  • Design @@ -343,6 +344,19 @@ interested in. The server will respond with a simple JSON object:

    The value of "subscribed" will be either true or false depending on the subscription status. +

    /passwd - Change a user's password

    + +

    POST to /passwd with a username parameter and an auth +cookie, plus password and new_password +parameters to change the user's password. For extra protection, +changing a password requires sending the user's current password in the +password parameter. If authentication is successful and +the password matches, the user's password is set to +new_password and the server responds with JSON success. + +If the password doesn't match, or one of password or +new_password are missing, the server returns JSON failure. +

    Design

    Motivation