do not allow to reset password when user is deleted

This commit is contained in:
Ulf Gebhardt 2023-06-28 11:16:48 +02:00
parent 5e9113373c
commit 31446aaa0e
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -352,7 +352,8 @@ export class UserResolver {
const user = await findUserByEmail(email).catch(() => {
logger.warn(`fail on find UserContact per ${email}`)
})
if (!user) {
if (!user || user.deletedAt) {
logger.warn(`no user found with ${email}`)
return true
}