This repository was archived by the owner on Jun 8, 2019. It is now read-only.
File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,6 @@ _testmain.go
24
24
* .prof
25
25
26
26
coverage.out
27
+
28
+ # JetBrains
29
+ .idea
Original file line number Diff line number Diff line change 1
1
// Copyright 2015 The Gogs Authors. All rights reserved.
2
+ // Copyright 2019 The Gitea Authors. All rights reserved.
2
3
// Use of this source code is governed by a MIT-style
3
4
// license that can be found in the LICENSE file.
4
5
@@ -21,8 +22,9 @@ type CreateUserOption struct {
21
22
// swagger:strfmt email
22
23
Email string `json:"email" binding:"Required;Email;MaxSize(254)"`
23
24
// 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"`
26
28
}
27
29
28
30
// AdminCreateUser create a user
@@ -44,6 +46,7 @@ type EditUserOption struct {
44
46
// swagger:strfmt email
45
47
Email string `json:"email" binding:"Required;Email;MaxSize(254)"`
46
48
Password string `json:"password" binding:"MaxSize(255)"`
49
+ MustChangePassword bool `json:"must_change_password"`
47
50
Website string `json:"website" binding:"MaxSize(50)"`
48
51
Location string `json:"location" binding:"MaxSize(50)"`
49
52
Active * bool `json:"active"`
You can’t perform that action at this time.
0 commit comments