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:
parent
c86155131a
commit
2d99378778
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ const ChangePassword = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
await api.patch(`/api/users/me/password`, { json: { password } }).json();
|
await api.patch(`/api/users/${userId}/password`, { json: { password } }).json();
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
setIsOpen(false);
|
setIsOpen(false);
|
||||||
toast.success(t('settings.password_changed'));
|
toast.success(t('settings.password_changed'));
|
||||||
|
|
Loading…
Reference in a new issue