bin/manage_users: Always treat pass argument as string

Fixes #1945

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-04-03 17:53:35 +02:00
parent d88dd31cc2
commit 101bedaecd
2 changed files with 3 additions and 2 deletions

View file

@ -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);

View file

@ -4,6 +4,7 @@
### Bugfixes
- Fix error that Libravatar user avatars were not shown when using OAuth2 login
- Fix `bin/manage_users` not accepting numeric passwords (thanks to [@carr0t2](https://github.com/carr0t2) for reporting)
### Enhancements
- Libravatar avatars render as ident-icons when no avatar image was uploaded to Libravatar or Gravatar