Skip to content

Commit 5fcc365

Browse files
committed
feat: Dont send activate=true if activation isnt required
1 parent c84d8af commit 5fcc365

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/backend/src/api/routes/auth.controller.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export class AuthController {
3030
getOrgFromCookie
3131
);
3232

33-
if (body.provider === 'LOCAL') {
33+
const activationRequired = body.provider === 'LOCAL' && !!process.env.RESEND_API_KEY;
34+
35+
if (activationRequired) {
3436
response.header('activate', 'true');
3537
response.status(200).json({ activate: true });
3638
return;

0 commit comments

Comments
 (0)