Skip to content

Commit 53431af

Browse files
committed
Use new command
1 parent 214633d commit 53431af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libs/actions/User.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Onyx.connect({
4848
* @param {String} oldPassword
4949
* @param {String} password
5050
*/
51-
function changePassword(oldPassword, password) {
52-
API.write('ChangePassword', {
51+
function updatePassword(oldPassword, password) {
52+
API.write('UpdatePassword', {
5353
oldPassword,
5454
password,
5555
}, {
@@ -453,7 +453,7 @@ function generateStatementPDF(period) {
453453
}
454454

455455
export {
456-
changePassword,
456+
updatePassword,
457457
closeAccount,
458458
getBetas,
459459
getUserDetails,

src/pages/settings/PasswordPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class PasswordPage extends Component {
133133
if (!this.validate()) {
134134
return;
135135
}
136-
User.changePassword(this.state.currentPassword, this.state.newPassword);
136+
User.updatePassword(this.state.currentPassword, this.state.newPassword);
137137
}
138138

139139
render() {

0 commit comments

Comments
 (0)