mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 23:40:38 +01:00
closes #2564
change user.search to accept params can search substr with startsWith:false no infinite scroll on admin user search page
This commit is contained in:
@@ -9,7 +9,7 @@ var usersController = {};
|
||||
usersController.search = function(req, res, next) {
|
||||
res.render('admin/manage/users', {
|
||||
search_display: '',
|
||||
loadmore_display: 'none',
|
||||
loadmore_display: 'hide',
|
||||
users: []
|
||||
});
|
||||
};
|
||||
@@ -52,6 +52,9 @@ function getUsers(set, req, res, next) {
|
||||
|
||||
usersController.getCSV = function(req, res, next) {
|
||||
user.getUsersCSV(function(err, data) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
res.attachment('users.csv');
|
||||
res.setHeader('Content-Type', 'text/csv');
|
||||
res.end(data);
|
||||
|
||||
Reference in New Issue
Block a user