fixed 2 tests

This commit is contained in:
barisusakli
2014-04-08 17:21:04 -04:00
parent 1cc15a71d6
commit 7a6f7d3e49
2 changed files with 3 additions and 2 deletions

View File

@@ -130,8 +130,9 @@ var bcrypt = require('bcryptjs'),
}
if (!results.exists) {
return callback(new Error('user-deleted'));
return callback(new Error('invalid-user'));
}
var lastposttime = results.lastposttime;
if (!lastposttime) {
lastposttime = 0;