MCPcopy Index your code
hub / github.com/codecombat/codecombat / sendKeepMeUpdatedVerificationCode

Method sendKeepMeUpdatedVerificationCode

app/models/User.js:603–615  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

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({

Callers 2

constructorMethod · 0.80
onClickKeepMeUpdatedMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected