Skip to content

Commit

Permalink
fix(emails): Fix bug with email configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
D34THWINGS committed Apr 1, 2019
1 parent 33da1a0 commit 0670950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/login/login.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
hashPasswordResetToken,
resetPassword: async (user) => {
const rawToken = await createPasswordResetToken(user._id);
server.plugins.mailjet.sendPasswordResetMail(user, rawToken);
await server.plugins.mailjet.sendPasswordResetMail(user, rawToken);
},
cleanPasswordResetToken: token => server.app.passwordResetCache.drop(hashPasswordResetToken(token)),
});
Expand Down
2 changes: 2 additions & 0 deletions packages/config/server/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ module.exports = {
preview: false,
apiKey: process.env.MAILJET_API_KEY,
apiToken: process.env.MAILJET_API_TOKEN,
fromName: 'LVConnect',
fromEmail: 'no-reply@link-value.fr',
baseUrl: 'http://localhost:8000',
},
};

0 comments on commit 0670950

Please sign in to comment.