(code)
| 601 | } |
| 602 | |
| 603 | sendKeepMeUpdatedVerificationCode (code) { |
| 604 | return $.ajax({ |
| 605 | method: 'POST', |
| 606 | url: `/db/user/${this.id}/keep-me-updated/${code}`, |
| 607 | success: attributes => { |
| 608 | this.set(attributes) |
| 609 | return this.trigger('user-keep-me-updated-success') |
| 610 | }, |
| 611 | error: () => { |
| 612 | return this.trigger('user-keep-me-updated-error') |
| 613 | }, |
| 614 | }) |
| 615 | } |
| 616 | |
| 617 | updatePassword (currentPassword, newPassword, success, error) { |
| 618 | return $.ajax({ |
no test coverage detected