configure default mail for use with MailHog

This commit is contained in:
2025-10-06 22:41:49 -06:00
parent 7db709be55
commit 933d028196
2 changed files with 5 additions and 4 deletions
+4 -4
View File
@@ -19,10 +19,10 @@ database:
driver: "mysql" driver: "mysql"
dsn: "amsdb:x00yes2k@tcp(localhost)/amsterdam?parseTime=true&loc=Local" dsn: "amsdb:x00yes2k@tcp(localhost)/amsterdam?parseTime=true&loc=Local"
email: email:
host: smtp.example.com host: localhost
port: 587 port: 1025
tls: starttls tls: none
authType: plain authType: none
user: jrn user: jrn
password: foobiebletch password: foobiebletch
mailFromAddr: "nobody@example.com" mailFromAddr: "nobody@example.com"
+1
View File
@@ -48,6 +48,7 @@ func setupEcho() *echo.Echo {
e.GET("/logout", ui.AmWrap(Logout)) e.GET("/logout", ui.AmWrap(Logout))
e.GET("/newacct", ui.AmWrap(NewAccountUserAgreement)) e.GET("/newacct", ui.AmWrap(NewAccountUserAgreement))
e.GET("/newacct2", ui.AmWrap(NewAccountForm)) e.GET("/newacct2", ui.AmWrap(NewAccountForm))
e.POST("/newacct2", ui.AmWrap(NewAccount))
e.GET("/verify", ui.AmWrap(VerifyEmailForm)) e.GET("/verify", ui.AmWrap(VerifyEmailForm))
e.POST("/verify", ui.AmWrap(VerifyEMail)) e.POST("/verify", ui.AmWrap(VerifyEMail))
e.GET("/passrecovery/:uid/:auth", ui.AmWrap(PasswordRecovery)) e.GET("/passrecovery/:uid/:auth", ui.AmWrap(PasswordRecovery))