mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-14 20:11:52 +00:00
Merge branch 'master' of https://github.com/Ylianst/MeshCentral
This commit is contained in:
commit
bd915de7fc
2 changed files with 541 additions and 553 deletions
|
@ -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;
|
||||
|
|
1092
meshuser.js
1092
meshuser.js
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue