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

Method changePassword

app/models/User.js:1157–1163  ·  view source on GitHub ↗
(userId, password, options = {})

Source from the content-addressed store, hash-verified

1155 }
1156
1157 changePassword (userId, password, options = {}) {
1158 options.url = '/auth/change-password'
1159 options.type = 'POST'
1160 if (options.data == null) { options.data = {} }
1161 _.extend(options.data, { userId, password })
1162 return this.fetch(options)
1163 }
1164
1165 makeCoursePrepaid (prepaidId) {
1166 const courseProduct = _.find(this.get('products'), p => (p.product === 'course') && ((p.prepaid + '') === (prepaidId + '')))

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected