This repository was archived by the owner on Jun 8, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,6 @@ _testmain.go
2424* .prof
2525
2626coverage.out
27+
28+ # JetBrains
29+ .idea
Original file line number Diff line number Diff line change 11// Copyright 2015 The Gogs Authors. All rights reserved.
2+ // Copyright 2019 The Gitea Authors. All rights reserved.
23// Use of this source code is governed by a MIT-style
34// license that can be found in the LICENSE file.
45
@@ -21,8 +22,9 @@ type CreateUserOption struct {
2122 // swagger:strfmt email
2223 Email string `json:"email" binding:"Required;Email;MaxSize(254)"`
2324 // required: true
24- Password string `json:"password" binding:"Required;MaxSize(255)"`
25- SendNotify bool `json:"send_notify"`
25+ Password string `json:"password" binding:"Required;MaxSize(255)"`
26+ MustChangePassword bool `json:"must_change_password"`
27+ SendNotify bool `json:"send_notify"`
2628}
2729
2830// AdminCreateUser create a user
@@ -44,6 +46,7 @@ type EditUserOption struct {
4446 // swagger:strfmt email
4547 Email string `json:"email" binding:"Required;Email;MaxSize(254)"`
4648 Password string `json:"password" binding:"MaxSize(255)"`
49+ MustChangePassword bool `json:"must_change_password"`
4750 Website string `json:"website" binding:"MaxSize(50)"`
4851 Location string `json:"location" binding:"MaxSize(50)"`
4952 Active * bool `json:"active"`
You can’t perform that action at this time.
0 commit comments