mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-27 06:06:54 +08:00
[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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user