Stricter username checking

This commit is contained in:
perp 2024-06-03 16:55:25 +01:00
parent 8ab75c204b
commit 510d71ef33

View File

@ -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
}