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

Commit 8718470

Browse files
BetaCat0lafriks
authored andcommitted
Fix a format problem in admin_user.go (#118)
* Prepare for Prioritize issues & update .gitignore for goland users Signed-off-by: Outman9946 <[email protected]> * Fix issues Signed-off-by: BetaCat0 <[email protected]> * Fix a format problem
1 parent aa2397d commit 8718470

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

gitea/admin_user.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ type EditUserOption struct {
4242
FullName string `json:"full_name" binding:"MaxSize(100)"`
4343
// required: true
4444
// swagger:strfmt email
45-
Email string `json:"email" binding:"Required;Email;MaxSize(254)"`
46-
Password string `json:"password" binding:"MaxSize(255)"`
47-
Website string `json:"website" binding:"MaxSize(50)"`
48-
Location string `json:"location" binding:"MaxSize(50)"`
49-
Active *bool `json:"active"`
50-
Admin *bool `json:"admin"`
51-
AllowGitHook *bool `json:"allow_git_hook"`
52-
AllowImportLocal *bool `json:"allow_import_local"`
53-
MaxRepoCreation *int `json:"max_repo_creation"`
54-
ProhibitLogin *bool `json:"prohibit_login"`
55-
AllowCreateOrganization *bool `json:"allow_create_organization"`
45+
Email string `json:"email" binding:"Required;Email;MaxSize(254)"`
46+
Password string `json:"password" binding:"MaxSize(255)"`
47+
Website string `json:"website" binding:"MaxSize(50)"`
48+
Location string `json:"location" binding:"MaxSize(50)"`
49+
Active *bool `json:"active"`
50+
Admin *bool `json:"admin"`
51+
AllowGitHook *bool `json:"allow_git_hook"`
52+
AllowImportLocal *bool `json:"allow_import_local"`
53+
MaxRepoCreation *int `json:"max_repo_creation"`
54+
ProhibitLogin *bool `json:"prohibit_login"`
55+
AllowCreateOrganization *bool `json:"allow_create_organization"`
5656
}
5757

5858
// AdminEditUser modify user informations

0 commit comments

Comments
 (0)