Method
updatePassword
(currentPassword, newPassword, success, error)
Source from the content-addressed store, hash-verified
| 615 | } |
| 616 | |
| 617 | updatePassword (currentPassword, newPassword, success, error) { |
| 618 | return $.ajax({ |
| 619 | method: 'PUT', |
| 620 | url: `/db/user/${this.id}/update-user-password`, |
| 621 | data: { currentPassword, newPassword }, |
| 622 | success: attributes => { |
| 623 | this.set(attributes) |
| 624 | return success() |
| 625 | }, |
| 626 | error, |
| 627 | }) |
| 628 | } |
| 629 | |
| 630 | sendNoDeleteEUVerificationCode (code) { |
| 631 | return $.ajax({ |
Tested by
no test coverage detected