Skip to content

Node.js based forum software built for the modern web

fix: fire filter:register.complete for users approved via registration queue

Andrew Rodrigues00552d7183f0
diff --git a/src/user/approval.js b/src/user/approval.js
index f0a5a77b98..b0c7769422 100644
--- a/src/user/approval.js
+++ b/src/user/approval.js
@@ -108,6 +108,9 @@ module.exports = function (User) {
function (next) {
markNotificationRead(username, next);
},
+ function (next) {
+ plugins.fireHook('filter:register.complete', { uid: uid }, next);
+ },
function (next) {
var title = meta.config.title || meta.config.browserTitle || 'NodeBB';
var data = {