mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
refactor ban messaging; add ban duration to message; use bootbox instead of alert
This commit is contained in:
@@ -105,7 +105,7 @@ module.exports = function (middleware) {
|
||||
function (results, next) {
|
||||
if (results.banned) {
|
||||
req.logout();
|
||||
return res.redirect('/?banned=' + (results.banReason || 'no-reason'));
|
||||
return res.redirect('/');
|
||||
}
|
||||
|
||||
results.user.isAdmin = results.isAdmin;
|
||||
|
||||
Reference in New Issue
Block a user