added lots of error keys

This commit is contained in:
barisusakli
2014-04-09 22:26:23 -04:00
parent 0ac58dbee6
commit 1f77df794a
14 changed files with 76 additions and 47 deletions

View File

@@ -126,11 +126,11 @@ var bcrypt = require('bcryptjs'),
}
if (parseInt(results.banned, 10) === 1) {
return callback(new Error('user-banned'));
return callback(new Error('[[error:user-banned]]'));
}
if (!results.exists) {
return callback(new Error('invalid-user'));
return callback(new Error('[[error:no-user]]'));
}
var lastposttime = results.lastposttime;