remy/jsbin — pull request #190 by aron (2012-06-24 21:10:59+00:00)
Title: Add ability to reset password

##### Password Reset

A password reset can be made by POSTing the email address as `"email"` to `/forgot`.

```js
jQuery.post('/forgot', {email: 'aron@aroncarroll.co'}).then(onSuccess, onError);
```

This will return a `200` okay on success or an error code on failure. There is a temporary form at jsbin.local/forgot for testing this.

This will also send an email to the user with a special link (jsbin.local/reset?token=xxxxxxxx) that will log them in to JSBin so that they can change thier password. The reset page currently provides a form to update the password.

##### Account Details

Account details (key and email) can also now be updated by POSTing any of `"key"` and `"email"` to `/updatehome`.

```js
jQuery.post('/updatehome', {email: 'test@example.com', key:'pass'}).then(onSuccess, onError);
```

This will return a 200 okay on success or an error code `500` on failure.