mirror of
https://github.com/volatiletech/authboss.git
synced 2024-11-24 08:42:17 +02:00
Merge branch 'jakha/patch-1' into dev
This commit is contained in:
commit
4d72929adb
@ -128,11 +128,14 @@ ab.Config.Paths.Mount = "/authboss"
|
||||
ab.Config.Paths.RootURL = "https://www.example.com/"
|
||||
|
||||
// This is using the renderer from: github.com/volatiletech/authboss
|
||||
ab.Config.Core.ViewRenderer = abrenderer.New("/auth")
|
||||
ab.Config.Core.ViewRenderer = abrenderer.NewHTML("/auth", "ab_views")
|
||||
// Probably want a MailRenderer here too.
|
||||
|
||||
// Set up defaults for basically everything besides the ViewRenderer/MailRenderer in the HTTP stack
|
||||
defaults.SetCore(&ab.Config, false)
|
||||
|
||||
// This instantiates and uses every default implementation
|
||||
// in the Config.Core area that exist in the defaults package.
|
||||
// Just a convenient helper if you don't want to do anything fancy.
|
||||
defaults.SetCore(&ab.Config, false, false)
|
||||
|
||||
if err := ab.Init(); err != nil {
|
||||
panic(err)
|
||||
|
Loading…
Reference in New Issue
Block a user