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))