mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Send invite email in the server console in development mode
Meteor support that use case for us, we don't need to implement our own validate strategy on top of that. This was also discussed as part of the #454 review.
This commit is contained in:
parent
9fa2917634
commit
0cdcccf1f6
1 changed files with 2 additions and 5 deletions
|
@ -166,12 +166,9 @@ if (Meteor.isServer) {
|
|||
board.addMember(user._id);
|
||||
user.addInvite(boardId);
|
||||
|
||||
if (!process.env.MAIL_URL || (!Email)) return { username: user.username };
|
||||
|
||||
try {
|
||||
let rootUrl = Meteor.absoluteUrl.defaultOptions.rootUrl || '';
|
||||
if (!rootUrl.endsWith('/')) rootUrl = `${rootUrl}/`;
|
||||
const boardUrl = `${rootUrl}b/${board._id}/${board.slug}`;
|
||||
const { _id, slug } = board;
|
||||
const boardUrl = FlowRouter.url('board', { id: _id, slug });
|
||||
|
||||
const vars = {
|
||||
user: user.username,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue