Skip to content

Commit

Permalink
fix(users): fix mail contact in templates 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Apr 23, 2020
1 parent 95fb7e3 commit e49839a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/templates/reset-password-confirm-email.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<p>This is a confirmation that the password for your account has just been changed</p>
<p>The {{appName}} Support Team.</p>
<br/>
<i style='color:#9b9b9b'>Please do not reply to this email, you can contact us here {{appContact}}.</i>
<i style='color:#9b9b9b'>Please do not reply to this email, you can contact us <a href="mailto:{{appContact}}">here</a>.</i>
</body>

</html>
2 changes: 1 addition & 1 deletion config/templates/reset-password-email.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<p>If you didn't make this request, you can ignore this email.</p>
<p>The {{appName}} Support Team.</p>
<br/>
<i style='color:#9b9b9b'>Please do not reply to this email, you can contact us here {{appContact}}.</i>
<i style='color:#9b9b9b'>Please do not reply to this email, you can contact us <a href="mailto:{{appContact}}">here</a>.</i>
</body>

</html>
4 changes: 2 additions & 2 deletions modules/users/controllers/users/users.password.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ exports.forgot = async (req, res) => {
displayName: user.displayName,
url: `${config.cors.protocol}://${config.cors.host}:${config.cors.port}/auth/password-reset?token=${user.resetPasswordToken}`,
appName: config.app.title,
appContact: config.app.appContact,
appContact: config.app.contact,
},
});
if (!mail.accepted) return responses.error(res, 400, 'Bad Request', 'Failure sending email')();
Expand Down Expand Up @@ -117,7 +117,7 @@ exports.reset = async (req, res) => {
params: {
displayName: user.displayName,
appName: config.app.title,
appContact: config.app.appContact,
appContact: config.app.contact,
},
});
if (!mail.accepted) return responses.error(res, 400, 'Bad Request', 'Failure sending email')();
Expand Down

0 comments on commit e49839a

Please sign in to comment.