feat: Dont send activate=true if activation isnt required
This commit is contained in:
parent
c84d8af915
commit
5fcc365efb
|
|
@ -30,7 +30,9 @@ export class AuthController {
|
||||||
getOrgFromCookie
|
getOrgFromCookie
|
||||||
);
|
);
|
||||||
|
|
||||||
if (body.provider === 'LOCAL') {
|
const activationRequired = body.provider === 'LOCAL' && !!process.env.RESEND_API_KEY;
|
||||||
|
|
||||||
|
if (activationRequired) {
|
||||||
response.header('activate', 'true');
|
response.header('activate', 'true');
|
||||||
response.status(200).json({ activate: true });
|
response.status(200).json({ activate: true });
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue