MCPcopy
hub / github.com/knadh/listmonk / ForgotPage

Method ForgotPage

cmd/auth.go:275–284  ·  view source on GitHub ↗

ForgotPage renders the forgot password page and handles the forgot password form.

(c echo.Context)

Source from the content-addressed store, hash-verified

273
274// ForgotPage renders the forgot password page and handles the forgot password form.
275func (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.
287func (a *App) ResetPage(c echo.Context) error {

Callers

nothing calls this directly

Calls 3

doForgotPasswordMethod · 0.95
TMethod · 0.80
RenderMethod · 0.45

Tested by

no test coverage detected