Skip to content

Commit

Permalink
Update passwordChange.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dungwinux authored Feb 27, 2019
1 parent ea5ffa2 commit 426a122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/globalStatusBar/userSetting/stub/passwordChange.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function constructRequestBody(password, newPassword) {

export default async function passwordChange (userId = window.hestia.user.userId,
password, newPassword, func) {
return fetch(`/api/users/${userId}`, {
return fetch(`/api/users/${userId}/password`, {
method: 'PUT',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Expand Down

0 comments on commit 426a122

Please sign in to comment.