bin/manage_users: Always treat pass argument as string
Fixes #1945 Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
@@ -92,8 +92,8 @@ const options = {
|
||||
reset: resetUser,
|
||||
};
|
||||
|
||||
// Perform commandline-parsing
|
||||
const argv = minimist(process.argv.slice(2));
|
||||
// Perform commandline-parsing and always treat 'pass' argument as string
|
||||
const argv = minimist(process.argv.slice(2), {string: ["pass"]});
|
||||
|
||||
const keys = Object.keys(options);
|
||||
const opts = keys.filter((key) => argv[key] !== undefined);
|
||||
|
||||
Reference in New Issue
Block a user