Ghost/ghost/admin
Gabor Javorszky 54415baf37 Users can change password
Closes #282
* Added a new route
* Added new methods
* Triple security!
* Passwords are actually changed
* Also added a change password button, because 'save' has too much baggage.

On security: checks whether you're logged in. Then checks whether your old password is actually the one that belongs to you (gets value from the email field for the email, see caveat no2). Checks the new passwords for === and length > 6 on client and server side as well. And THEN changes passwords.

Caveats:
* didn't add a test, as mocha fails spectacularly on my machine. SQLITE_CORRUPT: database disk image is malformed. Cute, huh?
* Because we don't have / I'm not aware of / could not find a "currentuser" variable, I need to get the email address of the user we want to change from the email field. Theoretically if they replace that with another user's email address, and supply their pw, they will change THEIR password instead of their own.
2013-08-06 00:49:06 +01:00
..
assets Persistent notifications should not fade out 2013-08-05 13:56:30 +01:00
helpers App restructure - closes #245 2013-07-11 20:23:34 +01:00
models Editable user profiles in settings screen 2013-08-05 18:26:44 +01:00
tpl Users can change password 2013-08-06 00:49:06 +01:00
views Users can change password 2013-08-06 00:49:06 +01:00
init.js App restructure - closes #245 2013-07-11 20:23:34 +01:00
markdown-actions.js First pass at creating a usuable modal for the copy to HTML keyboard shortcut. 2013-07-25 16:00:41 +01:00
router.js Editable user profiles in settings screen 2013-08-05 18:26:44 +01:00
tagui.js Revert "Merge pull request #318 from matthojo/mobile-interactions" 2013-08-01 22:19:20 +01:00
toggle.js App restructure - closes #245 2013-07-11 20:23:34 +01:00