summaryrefslogtreecommitdiffstats
path: root/modules/auth/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth/admin.go')
-rw-r--r--modules/auth/admin.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/auth/admin.go b/modules/auth/admin.go
index 16c2921c97..a4aa67ff9b 100644
--- a/modules/auth/admin.go
+++ b/modules/auth/admin.go
@@ -11,11 +11,12 @@ import (
)
type AdminCrateUserForm struct {
- LoginType string `binding:"Required"`
- LoginName string
- UserName string `binding:"Required;AlphaDashDot;MaxSize(35)"`
- Email string `binding:"Required;Email;MaxSize(254)"`
- Password string `binding:"MaxSize(255)"`
+ LoginType string `binding:"Required"`
+ LoginName string
+ UserName string `binding:"Required;AlphaDashDot;MaxSize(35)"`
+ Email string `binding:"Required;Email;MaxSize(254)"`
+ Password string `binding:"MaxSize(255)"`
+ SendNotify bool
}
func (f *AdminCrateUserForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {