ArcadeData / arcadeanalytics

Arcade Analytics is the first Open Source Graph Analytics platform. Connect your Graph Database (Neo4j, OrientDB, Amazon Neptune, Microsoft CosmosDB, etc) and RDBMS (Oracle, MySQL, Postgres, Microsoft SQLServer, MariaDB) to create powerful dashboards.
https://arcadeanalytics.com
Apache License 2.0
190 stars 30 forks source link

How to set passwords for new users? #26

Open kixxalot opened 5 years ago

kixxalot commented 5 years ago

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?

robfrank commented 5 years ago

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

robfrank commented 5 years ago

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

kixxalot commented 5 years ago

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=
  4. Visit this URL to set a password
robfrank commented 5 years ago

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.