mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05: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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue