ForgotPage renders the forgot password page and handles the forgot password form.
(c echo.Context)
| 273 | |
| 274 | // ForgotPage renders the forgot password page and handles the forgot password form. |
| 275 | func (a *App) ForgotPage(c echo.Context) error { |
| 276 | // Process the forgot password request. |
| 277 | if c.Request().Method == http.MethodPost { |
| 278 | return a.doForgotPassword(c) |
| 279 | } |
| 280 | |
| 281 | // Render the forgot page. |
| 282 | out := forgotPasswordTpl{Title: a.i18n.T("users.forgotPassword")} |
| 283 | return c.Render(http.StatusOK, "admin-forgot-password", out) |
| 284 | } |
| 285 | |
| 286 | // ResetPage renders the reset password page and handles the reset password form. |
| 287 | func (a *App) ResetPage(c echo.Context) error { |
nothing calls this directly
no test coverage detected