Password Reset UI
FE part of pleroma#114 (closed)
(This spec is WIP, additions / changes are very welcome)
Password Reset
- Add a new form containing
emailfield and submit button (clarify whether we need to usenicknameinstead ofemail— BE supports both, see pleroma!531 (merged)) - Add navigation to that form ("Forgot password?" link next to Register link in Login form? We don't seem to have it in current translations, though)
- On submit, do POST to
/api/account/password_reset(note:emailparameter takes precedence overnicknameon BE) - On
204 No Content, redirect to login form (main screen) -or- display "Password reset link sent!" message (prevent submitting the form more than once for unauthenticated users, though admins might want to submit it numerous times for different users — TBD) - On error response, display the error
Post-registration changes
- Only if
/statusnet/confighasaccountActivationRequiredset to1, display message that user needs to check mailbox for account confirmation email prior to logging in (clarify the exact wording). Also, registration action will renderpleroma.confirmation_pendingastruein this case (see pleroma!546 (merged)).
P.S. "Invite via Email" part moved to #192 (comment 10034)
Edited by Ivan Tashkinov