This commit is contained in:
parent
4627d3de30
commit
a1965c62e2
@ -60,7 +60,10 @@ export const POST = (async ({ request }) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (uuid && (await User.findOne({ where: { uuid: uuid } }))) {
|
||||
if (
|
||||
(uuid && (await User.findOne({ where: { uuid: uuid } }))) ||
|
||||
(!uuid && (await User.findOne({ where: { username: data.username } })))
|
||||
) {
|
||||
throw error(
|
||||
400,
|
||||
'Dein Minecraft-Account wurde bereits registriert.\n\nKontaktiere bitte einen Admin, falls diese ' +
|
||||
|
Loading…
x
Reference in New Issue
Block a user