123456789101112131415161718192021222324252627282930313233 |
- const config = require('config');
- const moduleManager = require('../../../index');
- const mail = moduleManager.modules["mail"];
- module.exports = function(to, username, code, cb) {
- let data = {
- from: 'Musare <noreply@musare.com>',
- to: to,
- subject: 'Password reset request',
- html:
- `
- Hello there ${username},
- <br>
- <br>
- Someone has requested to reset the password of your account. If this was not you, you can ignore this email.
- <br>
- <br>
- The reset code is <b>${code}</b>. You can enter this code on the page you requested the password reset. This code will expire in 24 hours.
- `
- };
- mail.sendMail(data, cb);
- };
|