This commit is contained in:
barisusakli
2016-02-08 12:21:23 +02:00
parent d4ce9c4f80
commit 4b3f09deea
3 changed files with 8 additions and 8 deletions

View File

@@ -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;