aboutsummaryrefslogtreecommitdiff
path: root/models/user.go
diff options
context:
space:
mode:
authorSb <Antimoney@users.noreply.github.com>2017-08-13 06:11:48 +0000
committer无闻 <u@gogs.io>2017-08-13 02:11:48 -0400
commitab2c6cb00870991c33a7e7c7a22c47db1f48a9bb (patch)
treeb7213b94dbc9692311e629a0e1338607e6895003 /models/user.go
parentf2c3f4a9443e79912b0bf5623650cb528dc980bc (diff)
models: fix #4692 and typo in comments (#4695)
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user.go b/models/user.go
index e67def02..4b97e911 100644
--- a/models/user.go
+++ b/models/user.go
@@ -492,7 +492,7 @@ func GetUserSalt() (string, error) {
return tool.RandomString(10)
}
-// NewGhostUser creates and returns a fake user for someone has deleted his/her account.
+// NewGhostUser creates and returns a fake user for someone who has deleted his/her account.
func NewGhostUser() *User {
return &User{
ID: -1,
@@ -502,7 +502,7 @@ func NewGhostUser() *User {
}
var (
- reservedUsernames = []string{"assets", "css", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
+ reservedUsernames = []string{"explore", "create", "assets", "css", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
reservedUserPatterns = []string{"*.keys"}
)