Stricter username checking
This commit is contained in:
parent
8ab75c204b
commit
510d71ef33
@ -56,8 +56,8 @@ func Register(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// Account exists
|
||||
if account.Username != "" {
|
||||
// Compare username
|
||||
if account.Username == body.Username {
|
||||
ctx.JSON(400, ctx.Error("UsernameTaken"))
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user