Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit fc9011e

Browse files
ethantkoeniglafriks
authored andcommitted
Require password when creating user (#74)
1 parent 60c6048 commit fc9011e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitea/admin_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type CreateUserOption struct {
2424
// in: body
2525
Email string `json:"email" binding:"Required;Email;MaxSize(254)"`
2626
// in: body
27-
Password string `json:"password" binding:"MaxSize(255)"`
27+
Password string `json:"password" binding:"Required;MaxSize(255)"`
2828
// in: body
2929
SendNotify bool `json:"send_notify"`
3030
}

0 commit comments

Comments
 (0)