1
0
mirror of https://github.com/volatiletech/authboss.git synced 2024-11-24 08:42:17 +02:00

Fix potential misconfiguration

This commit is contained in:
Aaron L 2020-01-30 10:11:47 -08:00
parent 02deb67e82
commit c462afb065

View File

@ -65,6 +65,8 @@ func (c *Confirm) Init(ab *authboss.Authboss) (err error) {
callbackMethod = c.Authboss.Config.Core.Router.Get
case http.MethodPost:
callbackMethod = c.Authboss.Config.Core.Router.Post
default:
panic("invalid config for ConfirmMethod/MailRouteMethod")
}
callbackMethod("/confirm", c.Authboss.Config.Core.ErrorHandler.Wrap(c.Get))