mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-03 00:19:57 -04:00
bin/manage_users: Always treat pass argument as string
Fixes #1945 Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
d88dd31cc2
commit
101bedaecd
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue