cootook / project

Learn by doing project for everybody
MIT License
0 stars 0 forks source link

[BUG] - change password btn exposed to admin when editing user info #22

Open cootook opened 8 months ago

cootook commented 8 months ago

Describe the bug When admin goes to list of clients and clicks on a client it redirects to user's info page, where the info can be edited. The bug is that on this page button "Change password" exposed for admin. If admin clicks it admins password is about to be changed not the users password. This page is the same for the user themself when they go to the account page. And user can change the password on this page.

To Reproduce Steps to reproduce the behavior:

  1. Login as admin
  2. Go to /clients/
  3. Click on any user but yourself
  4. On the page you can see the button

Expected behavior When admin goes to the page instead of button "change password" there should be button "restore password". When admin clicks it a modal with confirmation should be popped. When confirmed a link for changing password should be sent to user's email.

Screenshots image

Any device:

Additional context When issue created password changing via link is not implemented yet.