From b4727c7601d9ab30c4a9aa26a63cb0ce257e7d88 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 11 Mar 2014 00:53:53 -0400 Subject: Update create repo --- modules/auth/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/auth/repo.go') 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"` -- cgit v1.2.3