diff options
author | Unknwon <u@gogs.io> | 2015-03-11 09:21:05 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-03-11 09:21:05 -0400 |
commit | 34102f788945b1c73a845f7916d01d216baa56ad (patch) | |
tree | 002d4110061db82569347ceb18ffdf6b24a1dffd /modules/auth/repo_form.go | |
parent | da6fd93f0db157410efb1824dfc4b1f8102a6c47 (diff) | |
download | gitea-34102f788945b1c73a845f7916d01d216baa56ad.tar.gz gitea-34102f788945b1c73a845f7916d01d216baa56ad.zip |
remove unused scripts and simplify migrate form definition
Diffstat (limited to 'modules/auth/repo_form.go')
-rw-r--r-- | modules/auth/repo_form.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index 2902a92f2e..a092830188 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -32,13 +32,13 @@ func (f *CreateRepoForm) Validate(ctx *macaron.Context, errs binding.Errors) bin type MigrateRepoForm struct { CloneAddr string `binding:"Required"` - AuthUserName string `form:"auth_username"` - AuthPasswd string `form:"auth_password"` - Uid int64 `form:"uid" binding:"Required"` - RepoName string `form:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"` - Mirror bool `form:"mirror"` - Private bool `form:"private"` - Description string `form:"desc" binding:"MaxSize(255)"` + AuthUsername string + AuthPassword string + Uid int64 `binding:"Required"` + RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"` + Mirror bool + Private bool + Description string `binding:"MaxSize(255)"` } func (f *MigrateRepoForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |