Generate password reset tokens upon submission.

This commit is contained in:
mikestefanello 2021-12-15 21:17:39 -05:00
parent aa42451611
commit b4de8e58f9
4 changed files with 47 additions and 3 deletions

View file

@ -62,6 +62,7 @@ func NewPage(c echo.Context) Page {
p.CSRF = csrf.(string)
}
// TODO: Use container?
if u := c.Get(context.AuthenticatedUserKey); u != nil {
p.IsAuth = true
}