diff options
author | Unknwon <u@gogs.io> | 2015-09-25 19:45:44 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-25 19:45:44 -0400 |
commit | 21e13cb51e73471d186b963e26404f89abd81fce (patch) | |
tree | 9dfcbb3f446321066d2e49feb3b71b99d1c6bdca /modules/auth/admin.go | |
parent | 986447335dd4057003b2715034948e87a47bed6b (diff) | |
download | gitea-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.go | 11 |
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 { |