allow blocked users to sign up, block server join instead
deploy / build-and-deploy (push) Successful in 19s
deploy / build-and-deploy (push) Successful in 19s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
1d25e0ed59
commit
31ad92a6e2
7 files changed
+44
-19
No files matched your search
@@ -62,17 +62,6 @@ export const signup = {
|
||||
}
|
||||
}
|
||||
|
||||
// check if user is blocked
|
||||
if (uuid) {
|
||||
const blockedUser = await db.getBlockedUserByUuid({ uuid: uuid });
|
||||
if (blockedUser) {
|
||||
throw new ActionError({
|
||||
code: 'FORBIDDEN',
|
||||
message: 'Du bist für die Registrierung gesperrt'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
await db.transaction(async (tx) => {
|
||||
const user = await tx.addUser({
|
||||
firstname: input.firstname,
|
||||
|
||||
Reference in new issue
Block a user