|
|
@ -3,6 +3,7 @@
|
|
|
|
var async = require('async'),
|
|
|
|
var async = require('async'),
|
|
|
|
nconf = require('nconf'),
|
|
|
|
nconf = require('nconf'),
|
|
|
|
gravatar = require('gravatar'),
|
|
|
|
gravatar = require('gravatar'),
|
|
|
|
|
|
|
|
validator = require('validator'),
|
|
|
|
|
|
|
|
|
|
|
|
plugins = require('./plugins'),
|
|
|
|
plugins = require('./plugins'),
|
|
|
|
db = require('./database'),
|
|
|
|
db = require('./database'),
|
|
|
@ -111,6 +112,8 @@ var async = require('async'),
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
user.username = validator.escape(user.username);
|
|
|
|
|
|
|
|
|
|
|
|
if (user.password) {
|
|
|
|
if (user.password) {
|
|
|
|
user.password = undefined;
|
|
|
|
user.password = undefined;
|
|
|
|
}
|
|
|
|
}
|
|
|
|