summaryrefslogtreecommitdiffstats
path: root/modules/auth/admin.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-25 19:45:44 -0400
committerUnknwon <u@gogs.io>2015-09-25 19:45:44 -0400
commit21e13cb51e73471d186b963e26404f89abd81fce (patch)
tree9dfcbb3f446321066d2e49feb3b71b99d1c6bdca /modules/auth/admin.go
parent986447335dd4057003b2715034948e87a47bed6b (diff)
downloadgitea-21e13cb51e73471d186b963e26404f89abd81fce.tar.gz
gitea-21e13cb51e73471d186b963e26404f89abd81fce.zip
#1525 Triggere mailer for admin created accounts
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 {