do not expose email in error

This commit is contained in:
Ulf Gebhardt 2023-02-02 02:07:30 +01:00
parent 3c3ccdb133
commit 80ff425e39
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -801,7 +801,7 @@ export class UserResolver {
}
const emailContact = user.emailContact
if (emailContact.deletedAt) {
throw new LogError(`The emailContact: ${email} of this User is deleted`, email)
throw new LogError('The given email contact for this user is deleted', email)
}
emailContact.emailResendCount++