Files
casdoor/web/src
YunShu 559a91e8ee feat: fix bug that failed to set password after changing username (#2296)
* fix: failed to set password after changing username

When we add a new member to an organization using Casdoor, Casdoor will automatically generate a member with a random username, such as "user_qvducc". When we change the username, for example, to "yunshu", an issue arises where we are unable to successfully edit the password. This is because Casdoor searches for a user based on `owner/username`, and before any changes are saved, the username in the database remains "user_qvducc". However, the frontend uses `orgName/yunshu` instead of `orgName/user_qvducc` to send the request to change the password. As a result, the backend cannot find the user and the password change fails.

* Update user.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-09-03 00:04:48 +08:00
..
2023-08-14 12:09:50 +08:00
2023-09-02 18:49:43 +08:00
2023-09-01 01:30:50 +08:00
2023-08-27 16:40:31 +08:00
2022-07-10 15:45:55 +08:00
2023-08-25 11:56:12 +08:00
2023-08-14 12:19:02 +08:00
2023-09-02 18:49:43 +08:00
2023-02-16 22:50:08 +08:00
2023-07-31 15:23:44 +08:00
2023-08-26 23:50:24 +08:00
2023-09-02 18:49:43 +08:00
2022-07-10 15:45:55 +08:00
2023-08-27 17:07:19 +08:00
2023-08-27 02:22:37 +08:00
2023-08-26 23:50:24 +08:00