Use user ID in password reset route in order to properly compare token hashes.

This commit is contained in:
mikestefanello 2021-12-16 19:49:33 -05:00
parent e6a5fa58c7
commit b383be5dac
6 changed files with 40 additions and 24 deletions

View file

@ -42,6 +42,8 @@ func (r *Register) Post(c echo.Context) error {
return r.Get(c)
}
// TODO: Validation for dupe email addresses
// Parse the form values
form := new(RegisterForm)
if err := c.Bind(form); err != nil {