summaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-25 05:14:36 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-25 05:14:36 -0400
commit43b33440b53c79a22de08880851b5b55e9b6a4b3 (patch)
tree4ae44f5d94aa99149035c04e518a91090fe4932a /modules/auth
parent72ba273cc99589d7a0ca0a7986939e86f6599bf8 (diff)
downloadgitea-43b33440b53c79a22de08880851b5b55e9b6a4b3.tar.gz
gitea-43b33440b53c79a22de08880851b5b55e9b6a4b3.zip
Work on create organization repo and #257
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/repo.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/auth/repo.go b/modules/auth/repo.go
index 92ba64a27b..999f33fe81 100644
--- a/modules/auth/repo.go
+++ b/modules/auth/repo.go
@@ -22,9 +22,10 @@ import (
// \/ \/|__| \/ \/
type CreateRepoForm struct {
+ Uid int64 `form:"uid" binding:"Required"`
RepoName string `form:"repo" binding:"Required;AlphaDash;MaxSize(100)"`
Private bool `form:"private"`
- Description string `form:"desc" binding:"MaxSize(100)"`
+ Description string `form:"desc" binding:"MaxSize(255)"`
Language string `form:"language"`
License string `form:"license"`
InitReadme bool `form:"initReadme"`
@@ -50,7 +51,7 @@ type MigrateRepoForm struct {
RepoName string `form:"repo" binding:"Required;AlphaDash;MaxSize(100)"`
Mirror bool `form:"mirror"`
Private bool `form:"private"`
- Description string `form:"desc" binding:"MaxSize(100)"`
+ Description string `form:"desc" binding:"MaxSize(255)"`
}
func (f *MigrateRepoForm) Name(field string) string {