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:
parent
02deb67e82
commit
c462afb065
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user