mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 07:04:32 +02:00
+ Introduction of WIP asset system - menus, prompts, art, etc. @type:location/asset
This commit is contained in:
parent
113e16df0d
commit
3336caeec9
6 changed files with 95 additions and 26 deletions
|
@ -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'));
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue