Autosubmit mailing list confirmation

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-03-12 15:14:00 +01:00
parent d1e0ec649a
commit 5ac6511f63
3 changed files with 15 additions and 8 deletions

View File

@@ -42,14 +42,17 @@ func confirmGetHandler() http.HandlerFunc {
renderPage(
w,
http.StatusOK,
// The confirmation should happen too quickly for the user to notice.
// This content is only shown as a fallback.
page{
Title: "Confirm subscription",
Heading: "Confirm your subscription",
Body: "Click the button below to confirm that you want to receive updates.",
Body: "Your confirmation should be processed automatically. If it isn’t, click the button below to confirm that you want to receive updates.",
Form: &form{
ActionURL: template.URL("?token=" + url.QueryEscape(token)),
Button: "Confirm subscription",
Danger: false,
ActionURL: template.URL("?token=" + url.QueryEscape(token)),
Button: "Confirm subscription",
AutoSubmit: true,
Danger: false,
},
},
)