-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix: Change password for current user #2244
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the client code we have separate modules for "a user" and "the current user". I think these changes would fit better into the "current user module" and could possibly simplify the code a bit.
You can find the data source here:
https://github.com/umbraco/Umbraco.CMS.Backoffice/blob/main/src/packages/user/current-user/repository/current-user.server.data-source.ts
Then you can add a method to the "current user"-repository to change the password here:
https://github.com/umbraco/Umbraco.CMS.Backoffice/blob/main/src/packages/user/current-user/repository/current-user.repository.ts
Hi @madsrasmussen |
I did a bit of digging, and I can see you are right that we use the same modal for both a user and the current user which results in the "wrong" endpoint being called. I would still like us to move your changes in the data source and repository as mentioned in the previous comment. Then we also have to change the repository depending on the type of user. The repository is set up in the entity action code here: You can make a check to see if the user unique matches the current user and then spin up the Feel free to reach out on Slack if it doesn't make any sense :D |
Quality Gate passedIssues Measures |
Description
This PR fix bug can not change the current user password from this issue #16943
Types of changes
Motivation and context
How to test?
Screenshots (if appropriate)
Checklist