diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/admin.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/auth/admin.go b/modules/auth/admin.go index 0bb7d355c4..fb86a04764 100644 --- a/modules/auth/admin.go +++ b/modules/auth/admin.go @@ -12,12 +12,13 @@ import ( // AdminCreateUserForm form for admin to create user type AdminCreateUserForm 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)"` - SendNotify bool + 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 + MustChangePassword bool } // Validate validates form fields |