(userId, password, options = {})
| 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 + ''))) |