diff --git a/bin/manage_users b/bin/manage_users index 7cce97266..8356ab03a 100755 --- a/bin/manage_users +++ b/bin/manage_users @@ -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); diff --git a/public/docs/release-notes.md b/public/docs/release-notes.md index 8d0af33eb..038133d5f 100644 --- a/public/docs/release-notes.md +++ b/public/docs/release-notes.md @@ -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