feat: resend

This commit is contained in:
Nevo David 2024-09-06 00:47:57 +07:00
parent 038bf3eaf2
commit 3895be8957
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ export class OrganizationRepository {
role: Role.SUPERADMIN,
user: {
create: {
activated: body.provider !== 'LOCAL',
activated: body.provider !== 'LOCAL' || !process.env.RESEND_API_KEY,
email: body.email,
password: body.password
? AuthService.hashPassword(body.password)