mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-22 22:50:53 +01:00
closes #4154
This commit is contained in:
@@ -94,7 +94,7 @@ module.exports = function(User) {
|
||||
return;
|
||||
}
|
||||
|
||||
user.username = validator.escape(user.username);
|
||||
user.username = validator.escape(user.username || '');
|
||||
|
||||
if (user.password) {
|
||||
user.password = undefined;
|
||||
|
||||
Reference in New Issue
Block a user