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:
Login as admin
Go to /clients/
Click on any user but yourself
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
Any device:
OS: any
Browser [any]
Version [any]
Additional context
When issue created password changing via link is not implemented yet.
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 admin
s password is about to be changed not the user
s 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:
/clients/
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
Any device:
Additional context When issue created password changing via link is not implemented yet.