Use user ID in password reset route in order to properly compare token hashes.
This commit is contained in:
parent
e6a5fa58c7
commit
b383be5dac
6 changed files with 40 additions and 24 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue