0
я использую метод Users.on («resetPasswordRequest») в шлейфе для получения пароляОтправить клиент JSON с Users.on («resetPasswordRequest») в шлейфе
Users.on('resetPasswordRequest', function (info) {
var html = 'abcxyz';
Users.app.models.Email.send({
to: info.email,
from: '[email protected]',
subject: 'Password reset',
html: html
}, function (err ,email) {
if (err) return console.log('> error sending password reset email');
console.log('> sending password reset email to:', info.email);
});
});
Как отправить JSON отформатированный для клиента ?