mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-03 09:55:57 -05:00
Bugfix - ensure resetaccount pass is string
This commit is contained in:
parent
adacd5b63b
commit
449d2c2121
@ -829,7 +829,7 @@ function CreateMeshCentralServer(config, args) {
|
|||||||
obj.db.Set(user, function () { console.log("Done."); process.exit(); return; });
|
obj.db.Set(user, function () { console.log("Done."); process.exit(); return; });
|
||||||
} else {
|
} else {
|
||||||
// Hash the password and reset the account.
|
// 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;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user