Update pkglib to latest
This commit is contained in:
parent
2d1f3e3819
commit
0c50b5e182
10 changed files with 36 additions and 16 deletions
|
|
@ -89,8 +89,9 @@ func (admin *Admin) createUser(context.Context) http.Handler {
|
|||
},
|
||||
FieldTemplate: assets.PureCSSFieldTemplate,
|
||||
|
||||
Template: tpl.Template(),
|
||||
TemplateContext: templating.FormTemplateContext(tpl),
|
||||
Template: tpl.Template(),
|
||||
TemplateContext: templating.FormTemplateContext(tpl),
|
||||
LogTemplateError: tpl.LogTemplateError,
|
||||
|
||||
Validate: func(r *http.Request, values map[string]string) (cu createUserResult, err error) {
|
||||
cu.User, cu.Passsword, cu.Admin = values["username"], values["password"], values["admin"] == field.CheckboxChecked
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue