crash fix for admin verify email, temp fix

v1.18.x
Baris Soner Usakli 11 years ago
parent 044382047d
commit b325212182

@ -20,6 +20,7 @@ var render = function(template, params, callback) {
}
Emailer.send = function(template, uid, params) {
console.log(templates);
async.parallel({
html: function(next) {
render('emails/' + template, params, next);

@ -105,7 +105,9 @@ var bcrypt = require('bcrypt'),
if (email !== undefined) {
db.setObjectField('email:uid', email, uid);
if (uid !== 1) User.email.verify(uid, email);
if (parseInt(uid, 10) !== 1) {
User.email.verify(uid, email);
}
}
plugins.fireHook('action:user.create', {uid: uid, username: username, email: email, picture: gravatar, timestamp: timestamp});

Loading…
Cancel
Save