v1.18.x
barisusakli 8 years ago
parent 1c6cee207f
commit 35a15f37ec

@ -100,6 +100,9 @@ var emailer = require('../emailer');
async.apply(db.delete, 'uid:' + confirmObj.uid + ':confirm:email:sent'), async.apply(db.delete, 'uid:' + confirmObj.uid + ':confirm:email:sent'),
function (next) { function (next) {
db.sortedSetRemove('users:notvalidated', confirmObj.uid, next); db.sortedSetRemove('users:notvalidated', confirmObj.uid, next);
},
function (next) {
plugins.fireHook('action:user.email.confirmed', {uid: confirmObj.uid, email: confirmObj.email}, next);
} }
], function (err) { ], function (err) {
callback(err ? new Error('[[error:email-confirm-failed]]') : null); callback(err ? new Error('[[error:email-confirm-failed]]') : null);

Loading…
Cancel
Save