Added auth to the container.
This commit is contained in:
parent
c9d50cb3d4
commit
a33a76f8bc
9 changed files with 81 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue