fix: route dashboard user invites to reset-password instead of setup-account
All checks were successful
Build and Deploy / build-and-push (push) Successful in 1m12s
All checks were successful
Build and Deploy / build-and-push (push) Successful in 1m12s
This commit is contained in:
@@ -329,7 +329,7 @@ apiRouter.post('/users', requireRole(['admin', 'owner', 'super_admin']), async (
|
|||||||
);
|
);
|
||||||
|
|
||||||
// 4. Enviar E-mail de Boas-vindas
|
// 4. Enviar E-mail de Boas-vindas
|
||||||
const setupLink = `${getBaseUrl(req)}/#/setup-account?token=${token}`;
|
const setupLink = `${getBaseUrl(req)}/#/reset-password?token=${token}`;
|
||||||
|
|
||||||
await transporter.sendMail({
|
await transporter.sendMail({
|
||||||
from: `"Fasto" <${process.env.MAIL_FROM || 'nao-responda@blyzer.com.br'}>`,
|
from: `"Fasto" <${process.env.MAIL_FROM || 'nao-responda@blyzer.com.br'}>`,
|
||||||
|
|||||||
Reference in New Issue
Block a user