(code)
| 587 | } |
| 588 | |
| 589 | sendVerificationCode (code) { |
| 590 | return $.ajax({ |
| 591 | method: 'POST', |
| 592 | url: `/db/user/${this.id}/verify/${code}`, |
| 593 | success: attributes => { |
| 594 | this.set(attributes) |
| 595 | return this.trigger('email-verify-success') |
| 596 | }, |
| 597 | error: () => { |
| 598 | return this.trigger('email-verify-error') |
| 599 | }, |
| 600 | }) |
| 601 | } |
| 602 | |
| 603 | sendKeepMeUpdatedVerificationCode (code) { |
| 604 | return $.ajax({ |