Consul: Let managers reset user's password

Created on 1 Mar 2018  路  7Comments  路  Source: consul/consul

What we need

The manager should have a button to "reset password" for user:

1_reset_password

There are two options:

  1. If the user has an email present (and its one that he controls)
    Show a form with the button "Send reset password email" So the user will get a link that he can use to stablish a new password. This is useful when the user didn't have an email or not one that he controls... and the manager just fixed it for him (this is already described at issue https://github.com/consul/consul/issues/2499)

2_reset_password

  1. If the user doesn't have an email (or doesn't control/use it)
    This would show the Manager a form with:
  2. A "Password" input that shows in plain text the password and lets him type a new one by request of the user or his own will. There should be a "help text" next to it explaining that after saving it we'll offer him to "Print password" so there's no need to write it down right now.
  3. A "Generate random password" next to the input would be great, in the case the citizen doesn't need to have a "memorable" or "human readable" password.
  4. A "Save button"

3_reset_password

After hitting "Save" the Manager should have a "Print password" button that allows the manager to easily print the new password (we're not storing it in plain text... so somehow "store" it in session or somewhere) as an empty html page or pdf or... whatever its easier!

4_reset_password

Manager

All 7 comments

I'll do it

@decabeza I have two doubts regarding the UI:

  1. Where should I put the buttons for reseting the password and showing the password form? Should I follow the same style as described in #2499 (both in the rigth side of the square)?
  2. If the buttons are placed in the grey square, they must appear every time or only when the user is in management/account?

Hi @iagirre! I updated the issue and included some mockups 馃槈

Another "automagically closed" that shouldn't :(

Please @iagirre a backport to consul whenever you have the time to entirely close this issue 馃槂

Where was this implemented? Can't find this feature..

Hi @KrzysztofMadejski this feature was implemented on https://github.com/consul/consul/pull/2548 (you can see some attached gifs of how it works).

The URL to access to Management section is /management you can access with an admin user or a user with manager role.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GianniPDF picture GianniPDF  路  5Comments

decabeza picture decabeza  路  4Comments

decabeza picture decabeza  路  4Comments

bertocq picture bertocq  路  3Comments

voodoorai2000 picture voodoorai2000  路  7Comments