forked from forgejo/forgejo
Add admin add user
This commit is contained in:
parent
5373a3093e
commit
c1576b4c40
9 changed files with 204 additions and 15 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue