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

@ -14,6 +14,8 @@ type Logout struct {
func (l *Logout) Get(c echo.Context) error {
if err := l.Container.Auth.Logout(c); err == nil {
msg.Success(c, "You have been logged out successfully.")
} else {
msg.Danger(c, "An error occurred. Please try again.")
}
return l.Redirect(c, "home")
}