We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c84d8af commit 5fcc365Copy full SHA for 5fcc365
apps/backend/src/api/routes/auth.controller.ts
@@ -30,7 +30,9 @@ export class AuthController {
30
getOrgFromCookie
31
);
32
33
- if (body.provider === 'LOCAL') {
+ const activationRequired = body.provider === 'LOCAL' && !!process.env.RESEND_API_KEY;
34
+
35
+ if (activationRequired) {
36
response.header('activate', 'true');
37
response.status(200).json({ activate: true });
38
return;
0 commit comments