Let managers reset user's password #2548
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
References
This is a backport of the issue #2500 (done first at Madrid's fork).
The original PR is: AyuntamientoMadrid#1370
Objectives
Let the manager change the users' password in two ways:
Send an email to the registered email so that the user can be able to change the password by themselves.
Change the password using a form. The manager can write it in plain text or generate a random value.
When the password is saved, the manager can print it for the user.
Visual Changes
The new submenu and the overview
Random password generator and show/hide password
Password saved and print password page
How password is printed
Notes
I know that the 'Change user' link is still unchanged, but there is another PR waiting for merge that modifies that link. When both PR are merged the link will appear red and in the bottom of the box (I said this in order to avoid conflics when both PR will be merged, but If I should also change the link, let me know and I will).