summaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-10-31 11:14:38 -0400
committer无闻 <u@gogs.io>2015-10-31 11:14:38 -0400
commit91c9069c4d674615a306cc7d5317aae03eecb002 (patch)
treeb2a2ca3b59480ad5ac6c12944354b8a03fe680fd /modules/auth
parent102b675f96eb4340c35376ddd33385f4f20ef091 (diff)
parentf1aa4c05242e95fdc2b42a0b59a7b5a410990170 (diff)
downloadgitea-91c9069c4d674615a306cc7d5317aae03eecb002.tar.gz
gitea-91c9069c4d674615a306cc7d5317aae03eecb002.zip
Merge pull request #1862 from nathan7/fix-private
Fix the JSON field names for MigrateRepoForm
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/repo_form.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index ac43ba5d96..191117bbdf 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -37,8 +37,8 @@ type MigrateRepoForm struct {
AuthPassword string `json:"auth_password"`
Uid int64 `json:"uid" binding:"Required"`
RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"`
- Private bool `json:"mirror"`
- Mirror bool `json:"private"`
+ Mirror bool `json:"mirror"`
+ Private bool `json:"private"`
Description string `json:"description" binding:"MaxSize(255)"`
}