mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 17:10:40 +02:00
closes #3820
This commit is contained in:
@@ -70,6 +70,7 @@ module.exports = function(User) {
|
||||
if (!data.username) {
|
||||
return next();
|
||||
}
|
||||
data.username = data.username.trim();
|
||||
User.getUserFields(uid, ['username', 'userslug'], function(err, userData) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
|
||||
Reference in New Issue
Block a user