aboutsummaryrefslogtreecommitdiff
path: root/modules/auth/repo.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-11 00:53:53 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-11 00:53:53 -0400
commitb4727c7601d9ab30c4a9aa26a63cb0ce257e7d88 (patch)
treea42fab346f1b16943f75d24067945792e6f50804 /modules/auth/repo.go
parent5b5d54621e6b17e65e1df9227ca1bd5a66ce86db (diff)
Update create repo
Diffstat (limited to 'modules/auth/repo.go')
-rw-r--r--modules/auth/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/repo.go b/modules/auth/repo.go
index 6656654f..e55ccb28 100644
--- a/modules/auth/repo.go
+++ b/modules/auth/repo.go
@@ -18,7 +18,7 @@ import (
type CreateRepoForm struct {
UserId int64 `form:"userId"`
- RepoName string `form:"repo" binding:"Required"`
+ RepoName string `form:"repo" binding:"Required;AlphaDash"`
Visibility string `form:"visibility"`
Description string `form:"desc" binding:"MaxSize(100)"`
Language string `form:"language"`