MCPcopy Create free account
hub / github.com/codecombat/codecombat / updatePassword

Method updatePassword

app/models/User.js:617–628  ·  view source on GitHub ↗
(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({

Callers 1

grabPasswordDataMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected