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