mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-16 07:28:06 +02:00
temporarily disable email on invite user
This commit is contained in:
parent
4e7fa0f2d9
commit
217ceab50e
1 changed files with 14 additions and 14 deletions
|
@ -146,20 +146,20 @@ export async function inviteUser(
|
||||||
const inviteLink = `${config.app.base_url}/invite?token=${inviteId}-${token}`;
|
const inviteLink = `${config.app.base_url}/invite?token=${inviteId}-${token}`;
|
||||||
|
|
||||||
logger.debug("here5")
|
logger.debug("here5")
|
||||||
await sendEmail(
|
// await sendEmail(
|
||||||
SendInviteLink({
|
// SendInviteLink({
|
||||||
email,
|
// email,
|
||||||
inviteLink,
|
// inviteLink,
|
||||||
expiresInDays: (validHours / 24).toString(),
|
// expiresInDays: (validHours / 24).toString(),
|
||||||
orgName: org[0].name || orgId,
|
// orgName: org[0].name || orgId,
|
||||||
inviterName: req.user?.email,
|
// inviterName: req.user?.email,
|
||||||
}),
|
// }),
|
||||||
{
|
// {
|
||||||
to: email,
|
// to: email,
|
||||||
from: config.email?.no_reply,
|
// from: config.email?.no_reply,
|
||||||
subject: "You're invited to join a Fossorial organization",
|
// subject: "You're invited to join a Fossorial organization",
|
||||||
},
|
// },
|
||||||
);
|
// );
|
||||||
|
|
||||||
logger.debug("here6")
|
logger.debug("here6")
|
||||||
return response<InviteUserResponse>(res, {
|
return response<InviteUserResponse>(res, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue