mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
closes #3297
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
var async = require('async'),
|
||||
nconf = require('nconf'),
|
||||
gravatar = require('gravatar'),
|
||||
validator = require('validator'),
|
||||
|
||||
plugins = require('./plugins'),
|
||||
db = require('./database'),
|
||||
@@ -111,6 +112,8 @@ var async = require('async'),
|
||||
return;
|
||||
}
|
||||
|
||||
user.username = validator.escape(user.username);
|
||||
|
||||
if (user.password) {
|
||||
user.password = undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user