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

Method sendVerificationCode

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

Source from the content-addressed store, hash-verified

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

Callers 1

constructorMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected