diff options
Diffstat (limited to 'modules/auth/repo.go')
-rw-r--r-- | modules/auth/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/repo.go b/modules/auth/repo.go index 6656654f56..e55ccb2894 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"` |