diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-02-27 13:37:57 -0600 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-02-27 21:37:57 +0200 |
commit | 7548037a64fd42bf11ad0d11a49fc3ae8dc731ff (patch) | |
tree | 4af3b0fb86c957409a126c38b493a0bca05eeb18 /vendor/code.gitea.io | |
parent | b1ffe7e47b7752ba7c4f1733d0d6448d9c701078 (diff) | |
download | gitea-7548037a64fd42bf11ad0d11a49fc3ae8dc731ff.tar.gz gitea-7548037a64fd42bf11ad0d11a49fc3ae8dc731ff.zip |
Adds MustChangePassword to user create/edit API, defaults to true (#6193)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'vendor/code.gitea.io')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/admin_user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/admin_user.go b/vendor/code.gitea.io/sdk/gitea/admin_user.go index a87ae89d44..a4df703b17 100644 --- a/vendor/code.gitea.io/sdk/gitea/admin_user.go +++ b/vendor/code.gitea.io/sdk/gitea/admin_user.go @@ -23,7 +23,7 @@ type CreateUserOption struct { Email string `json:"email" binding:"Required;Email;MaxSize(254)"` // required: true Password string `json:"password" binding:"Required;MaxSize(255)"` - MustChangePassword bool `json:"must_change_password"` + MustChangePassword *bool `json:"must_change_password"` SendNotify bool `json:"send_notify"` } @@ -46,7 +46,7 @@ type EditUserOption struct { // swagger:strfmt email Email string `json:"email" binding:"Required;Email;MaxSize(254)"` Password string `json:"password" binding:"MaxSize(255)"` - MustChangePassword bool `json:"must_change_password"` + MustChangePassword *bool `json:"must_change_password"` Website string `json:"website" binding:"MaxSize(50)"` Location string `json:"location" binding:"MaxSize(50)"` Active *bool `json:"active"` |