1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-02-09 13:47:09 +02:00

Merge pull request #88 from yargevad/ISSUE-87

require `SessionStoreMaker` and `CookieStoreMaker` at startup
This commit is contained in:
Aaron L 2016-06-25 13:45:04 -07:00 committed by GitHub
commit 2647017499

View File

@ -45,6 +45,12 @@ func (r *Register) Initialize(ab *authboss.Authboss) (err error) {
return errors.New("register: Need a RegisterStorer")
}
if ab.SessionStoreMaker == nil {
return errors.New("register: Need a SessionStoreMaker")
} else if ab.CookieStoreMaker == nil {
return errors.New("register: Need a CookieStoreMaker")
}
if r.templates, err = response.LoadTemplates(r.Authboss, r.Layout, r.ViewsPath, tplRegister); err != nil {
return err
}