File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ Onyx.connect({
48
48
* @param {String } oldPassword
49
49
* @param {String } password
50
50
*/
51
- function changePassword ( oldPassword , password ) {
52
- API . write ( 'ChangePassword ' , {
51
+ function updatePassword ( oldPassword , password ) {
52
+ API . write ( 'UpdatePassword ' , {
53
53
oldPassword,
54
54
password,
55
55
} , {
@@ -453,7 +453,7 @@ function generateStatementPDF(period) {
453
453
}
454
454
455
455
export {
456
- changePassword ,
456
+ updatePassword ,
457
457
closeAccount ,
458
458
getBetas ,
459
459
getUserDetails ,
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ class PasswordPage extends Component {
133
133
if ( ! this . validate ( ) ) {
134
134
return ;
135
135
}
136
- User . changePassword ( this . state . currentPassword , this . state . newPassword ) ;
136
+ User . updatePassword ( this . state . currentPassword , this . state . newPassword ) ;
137
137
}
138
138
139
139
render ( ) {
You can’t perform that action at this time.
0 commit comments