This commit is contained in:
Ylian Saint-Hilaire 2021-12-10 14:12:01 -08:00
commit bd915de7fc
2 changed files with 541 additions and 553 deletions

View File

@ -829,7 +829,7 @@ function CreateMeshCentralServer(config, args) {
obj.db.Set(user, function () { console.log("Done."); process.exit(); return; });
} else {
// Hash the password and reset the account.
require('./pass').hash(obj.args.pass, user.salt, function (err, hash, tag) { if (err) { console.log("Unable to reset password: " + err); process.exit(); return; } user.hash = hash; obj.db.Set(user, function () { console.log("Done."); process.exit(); return; }); }, 0);
require('./pass').hash(String(obj.args.pass), user.salt, function (err, hash, tag) { if (err) { console.log("Unable to reset password: " + err); process.exit(); return; } user.hash = hash; obj.db.Set(user, function () { console.log("Done."); process.exit(); return; }); }, 0);
}
});
return;

File diff suppressed because it is too large Load Diff