the invalid arguments to addUser message contains terrible UX

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.4
    • Affects Version/s: 2.5.2
    • Component/s: Security
    • None
    • ALL
    • Hide

      pass an invalid argument to addUser()

      Show
      pass an invalid argument to addUser()
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      the error reads:
      Error: Invalid arguments to addUser. addUser must either be run with a full user object or with a username, password, and roles array

      but the fields aren't called username and password
      instead they are called user and pwd

      so when one tries to run the command again taking into account the feedback from error message they get the following error:
      couldn't add user: "username" is not a valid argument to createUser

      which must be deeply frustrating
      also it's a bit confusing because they called addUser not createUser

            Assignee:
            Spencer Brody (Inactive)
            Reporter:
            Matt Dannenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: