diff options
author | Lanre Adelowo <adelowomailbox@gmail.com> | 2018-09-13 17:34:36 +0100 |
---|---|---|
committer | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-09-13 12:34:36 -0400 |
commit | 2a6d3ba058ef855340ea0092a0e06781d067ad74 (patch) | |
tree | 3f9da2ea007d5ccc8359f1497d296bf8a1f5e9c3 /modules | |
parent | f98040ad5007a3f1f8a80d2ec82f0333b4c684b7 (diff) | |
download | gitea-2a6d3ba058ef855340ea0092a0e06781d067ad74.tar.gz gitea-2a6d3ba058ef855340ea0092a0e06781d067ad74.zip |
Allow admin toggle forcing a password change for newly created users (#4563)
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 |