0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

refactor(console): fix change password

This commit is contained in:
Gao Sun 2022-09-24 15:58:45 +08:00
parent c86155131a
commit 2d99378778
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -38,7 +38,7 @@ const ChangePassword = () => {
}
setIsLoading(true);
await api.patch(`/api/users/me/password`, { json: { password } }).json();
await api.patch(`/api/users/${userId}/password`, { json: { password } }).json();
setIsLoading(false);
setIsOpen(false);
toast.success(t('settings.password_changed'));