+ Introduction of WIP asset system - menus, prompts, art, etc. @type:location/asset

This commit is contained in:
Bryan Ashby 2015-04-05 01:15:04 -06:00
parent 113e16df0d
commit 3336caeec9
6 changed files with 95 additions and 26 deletions

View file

@ -303,7 +303,7 @@ function authenticate(userName, password, client, cb) {
],
function validateAuth(err, passDk, propsDk) {
if(err) {
cb(false);
cb(err);
} else {
//
// Use constant time comparison here for security feel-goods
@ -321,7 +321,7 @@ function authenticate(userName, password, client, cb) {
c |= passDkBuf[i] ^ propsDkBuf[i];
}
cb(0 === c);
cb(0 === c ? null : new Error('Invalid password'));
}
}
);