Skip to content

Node.js based forum software built for the modern web

closes #5276

barisusakli35a15f37ece9
diff --git a/src/user/email.js b/src/user/email.js
index 5eb93b71e0..99d2d9693d 100644
--- a/src/user/email.js
+++ b/src/user/email.js
@@ -100,6 +100,9 @@ var emailer = require('../emailer');
async.apply(db.delete, 'uid:' + confirmObj.uid + ':confirm:email:sent'),
function (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) {
callback(err ? new Error('[[error:email-confirm-failed]]') : null);