Added auth to the container.

This commit is contained in:
mikestefanello 2021-12-15 09:29:43 -05:00
parent c9d50cb3d4
commit a33a76f8bc
9 changed files with 81 additions and 32 deletions

View file

@ -57,7 +57,7 @@ func BuildRouter(c *container.Container) {
echomw.CSRFWithConfig(echomw.CSRFConfig{
TokenLookup: "form:csrf",
}),
middleware.LoadAuthenticatedUser(c.ORM),
middleware.LoadAuthenticatedUser(c.Auth),
)
// Base controller