Browse Source

Merge pull request #1862 from nathan7/fix-private

Fix the JSON field names for MigrateRepoForm
tags/v1.2.0-rc1
无闻 9 years ago
parent
commit
e85fd9e599
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/auth/repo_form.go

+ 2
- 2
modules/auth/repo_form.go View File

@@ -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)"`
}



Loading…
Cancel
Save