AndiLavera / mochi

Mochi is a authentication shard inspired by devise. Mochi is designed for the Amber framework with support for both Granite & Jennifer ORM's.
MIT License
25 stars 2 forks source link

Password reset needs redesign #24

Closed AndiLavera closed 4 years ago

AndiLavera commented 4 years ago

Problem

Users input a new password BEFORE verifying email. This new password is saved to the account and then a confirmation email is sent out.

Solution

Users hit the new route, users should input their email(posts to create), an email should be sent out to verify. The link should lead to PasswordController#edit (not implemented). The edit should verify the confirmation_token and place it as a hidden field. Update should still use the the confirmation_token for verification hence the hidden field