Merge pull request #3090 from gradido/fix-forget-password-deleted-user

fix(backend): forget password not for deleted users
This commit is contained in:
Ulf Gebhardt 2023-06-28 16:49:50 +02:00 committed by GitHub
commit b1036c9d5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}