make user test pass

This commit is contained in:
girish@cloudron.io
2016-02-08 21:17:21 -08:00
parent f6541720c4
commit 451c410547
2 changed files with 10 additions and 12 deletions
+3 -3
View File
@@ -125,9 +125,9 @@ function createUser(username, password, email, displayName, options, callback) {
options = null;
}
var invitor = options ? options.invitor : null,
sendInvite = options ? options.sendInvite : false,
owner = options ? options.owner : false;
var invitor = options && options.invitor ? options.invitor : null,
sendInvite = options && options.sendInvite ? true : false,
owner = options && options.owner ? true : false;
var error = validateUsername(username);
if (error) return callback(error);