[FEAT] disable email delivery (#1419)

* feat: add config to disable email delivery

* chore: update config schema

* docs: add new config parameter

* test: fix test

* fix: rename email webhook event

* docs: Update backend/docs/Config.md

Co-authored-by: Lennart Fleischmann <67686424+lfleischmann@users.noreply.github.com>

---------

Co-authored-by: Lennart Fleischmann <67686424+lfleischmann@users.noreply.github.com>
This commit is contained in:
Frederic Jahn
2024-04-18 15:15:02 +02:00
committed by GitHub
parent 7276db13bb
commit def7ad37a0
13 changed files with 162 additions and 52 deletions

View File

@ -143,9 +143,9 @@ func NewPublicRouter(cfg *config.Config, persister persistence.Persister, promet
webauthnCredentials.DELETE("/:id", webauthnHandler.DeleteCredential)
passcode := g.Group("/passcode")
passcodeLogin := passcode.Group("/login")
passcodeLogin := passcode.Group("/login", webhookMiddlware)
passcodeLogin.POST("/initialize", passcodeHandler.Init)
passcodeLogin.POST("/finalize", passcodeHandler.Finish, webhookMiddlware)
passcodeLogin.POST("/finalize", passcodeHandler.Finish)
email := g.Group("/emails", sessionMiddleware, webhookMiddlware)
email.GET("", emailHandler.List)