From 6cd8248cae1a1cfd43e980416c2f00b92b811da4 Mon Sep 17 00:00:00 2001 From: Aziz Khoury Date: Fri, 25 Jan 2019 16:18:56 +0200 Subject: [PATCH] added empty array for customActions and another indentation fix attempt, related to #7284 --- src/user/approval.js | 10 ++++++++++ src/views/admin/manage/registration.tpl | 18 +++++++++--------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/user/approval.js b/src/user/approval.js index 9429fef270..90bb71b324 100644 --- a/src/user/approval.js +++ b/src/user/approval.js @@ -200,6 +200,16 @@ module.exports = function (User) { getIPMatchedUsers(user, function (err) { next(err, user); }); + user.customActions = [].concat(user.customActions); + /* + // then spam prevention plugins, using the "filter:user.getRegistrationQueue" hook can be like: + user.customActions.push({ + title: '[[spam-be-gone:report-user]]', + id: 'report-spam-user-' + user.username, + class: 'btn-warning report-spam-user', + icon: 'fa-flag' + }); + */ }, next); }, function (users, next) { diff --git a/src/views/admin/manage/registration.tpl b/src/views/admin/manage/registration.tpl index 6171251305..22048eebfe 100644 --- a/src/views/admin/manage/registration.tpl +++ b/src/views/admin/manage/registration.tpl @@ -30,9 +30,9 @@ - - - + + + {users.username} @@ -40,9 +40,9 @@ - - - + + + {users.email} @@ -50,9 +50,9 @@ - - - + + + {users.ip}