1
0
Fork 0
forked from forgejo/forgejo

Add admin add user

This commit is contained in:
Unknown 2014-03-21 03:27:59 -04:00
parent 5373a3093e
commit c1576b4c40
9 changed files with 204 additions and 15 deletions

View file

@ -107,7 +107,7 @@ func IsRepositoryExist(user *User, repoName string) (bool, error) {
var (
// Define as all lower case!!
illegalPatterns = []string{"[.][Gg][Ii][Tt]", "user", "help", "stars", "issues", "pulls", "commits", "admin", "repo", "template"}
illegalPatterns = []string{"[.][Gg][Ii][Tt]", "user", "help", "stars", "issues", "pulls", "commits", "admin", "repo", "template", "admin"}
)
// IsLegalName returns false if name contains illegal characters.