arcadeanalytics icon indicating copy to clipboard operation
arcadeanalytics copied to clipboard

How to set passwords for new users?

Open kixxalot opened this issue 6 years ago • 4 comments

After logging in as admin:admin, it is possible to create new users. But there does not seem to be a way to set their passwords.

How should passwords be assigned to new users?

I am assuming new users are sent an account activation link? But is there another way for the administrator to set passwords for accounts, e.g. with the API?

kixxalot avatar Feb 26 '19 09:02 kixxalot

I'm sorry, we are working on the documentation about admin features. Stay tuned

robfrank avatar Feb 26 '19 13:02 robfrank

We created the application using JHipster and when a new a user is created the "admin" isn't allowed to provide a passord. The new user will receive and email with a link to be used to activate the account.

I exposed the parameters to configure the SMPT server/account in the compose yml:

...
      - SPRING_EMAIL_HOST=smtp.gmail.com
      - SPRING_EMAIL_PORT=587
      - SPRING_EMAIL_USERNAME=
      - SPRING_EMAIL_PASSWORD=
...

take a look to this SO answer too: https://stackoverflow.com/questions/41070560/how-to-create-new-user-on-admin-page-in-jhipster

robfrank avatar Mar 05 '19 17:03 robfrank

Workaround:

  1. Create a new user in the admin web interface
  2. Look up the "reset_key" for this new user in the table "jhi_user" of the psql database
  3. Use this key to form a password creation url like this: http://arcadeserver.local:8080/#/reset/finish?key=<reset_key>
  4. Visit this URL to set a password

kixxalot avatar Mar 26 '19 13:03 kixxalot

I think it could be quite easy to implement that feature. Just add a button that calls the right API. It would be great if you would be able to submit a pull request.

robfrank avatar Mar 26 '19 14:03 robfrank