From f769b4ff0970244f70295d9afcc984e2a681ea68 Mon Sep 17 00:00:00 2001 From: Katrin Yordanova Date: Wed, 15 Dec 2021 18:17:37 +0200 Subject: [PATCH] Fix broken translations on password reset --- auth/handlers/handle_password-reset.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/handlers/handle_password-reset.go b/auth/handlers/handle_password-reset.go index 9344cf447..92dca58da 100644 --- a/auth/handlers/handle_password-reset.go +++ b/auth/handlers/handle_password-reset.go @@ -70,7 +70,7 @@ func (h *AuthHandlers) resetPasswordForm(req *request.AuthReq) (err error) { t := translator(req, "auth") req.NewAlerts = append(req.NewAlerts, request.Alert{ Type: "warning", - Text: t("password-reset-requested.alerts.invalid-expired-password-token"), + Text: t("password-reset-requested.alert.invalid-expired-password-token"), }) } @@ -87,7 +87,7 @@ func (h *AuthHandlers) resetPasswordProc(req *request.AuthReq) (err error) { t := translator(req, "auth") req.NewAlerts = append(req.NewAlerts, request.Alert{ Type: "primary", - Text: t("password-reset-requested.alerts.password-reset-success"), + Text: t("password-reset-requested.alert.password-reset-success"), }) req.RedirectTo = GetLinks().Profile @@ -121,6 +121,6 @@ func (h *AuthHandlers) passwordResetDisabledAlert(req *request.AuthReq) { t := translator(req, "auth") req.NewAlerts = append(req.NewAlerts, request.Alert{ Type: "danger", - Text: t("password-reset-requested.alerts.password-reset-disabled"), + Text: t("password-reset-requested.alert.password-reset-disabled"), }) }