From 933d02819670bc591a3145dd84276b8b3b328229 Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Mon, 6 Oct 2025 22:41:49 -0600 Subject: [PATCH] configure default mail for use with MailHog --- config/default.yaml | 8 ++++---- main.go | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config/default.yaml b/config/default.yaml index ea1dcb8..6df8ca8 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -19,10 +19,10 @@ database: driver: "mysql" dsn: "amsdb:x00yes2k@tcp(localhost)/amsterdam?parseTime=true&loc=Local" email: - host: smtp.example.com - port: 587 - tls: starttls - authType: plain + host: localhost + port: 1025 + tls: none + authType: none user: jrn password: foobiebletch mailFromAddr: "nobody@example.com" diff --git a/main.go b/main.go index 8b44178..22a7eaf 100644 --- a/main.go +++ b/main.go @@ -48,6 +48,7 @@ func setupEcho() *echo.Echo { e.GET("/logout", ui.AmWrap(Logout)) e.GET("/newacct", ui.AmWrap(NewAccountUserAgreement)) e.GET("/newacct2", ui.AmWrap(NewAccountForm)) + e.POST("/newacct2", ui.AmWrap(NewAccount)) e.GET("/verify", ui.AmWrap(VerifyEmailForm)) e.POST("/verify", ui.AmWrap(VerifyEMail)) e.GET("/passrecovery/:uid/:auth", ui.AmWrap(PasswordRecovery))