fixed email key

v1.18.x
Baris Usakli 11 years ago
parent 942a21b4be
commit 3348ed3524

@ -461,7 +461,7 @@ var utils = require('./../public/src/utils.js'),
} }
User.sendConfirmationEmail = function(email) { User.sendConfirmationEmail = function(email) {
if (meta.config['email:host'] && meta.config['email:port'] && meta.config['email:from']) { if (meta.config['email:smtp:host'] && meta.config['email:smtp:port'] && meta.config['email:from']) {
var confirm_code = utils.generateUUID(), var confirm_code = utils.generateUUID(),
confirm_link = nconf.get('url') + 'confirm/' + confirm_code, confirm_link = nconf.get('url') + 'confirm/' + confirm_code,
confirm_email = global.templates['emails/header'] + global.templates['emails/email_confirm'].parse({ confirm_email = global.templates['emails/header'] + global.templates['emails/email_confirm'].parse({

Loading…
Cancel
Save