Refactor CSRF protection
This commit is contained in:
parent
59b565ae19
commit
eb17dbe33f
8 changed files with 20 additions and 45 deletions
|
|
@ -64,7 +64,7 @@ func (admin *Admin) createUser(ctx context.Context) http.Handler {
|
|||
},
|
||||
FieldTemplate: httpx.PureCSSFieldTemplate,
|
||||
|
||||
CSRF: admin.Dependencies.Auth.CSRF(),
|
||||
CSRF: true,
|
||||
|
||||
RenderTemplate: userCreateTemplate,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue