(usernameOrEmail, password, options = {})
| 1137 | } |
| 1138 | |
| 1139 | loginPasswordUser (usernameOrEmail, password, options = {}) { |
| 1140 | options.xhrFields = { withCredentials: true } |
| 1141 | options.url = '/auth/login' |
| 1142 | options.type = 'POST' |
| 1143 | if (options.data == null) { options.data = {} } |
| 1144 | _.extend(options.data, { username: usernameOrEmail, password }) |
| 1145 | return this.fetch(options) |
| 1146 | } |
| 1147 | |
| 1148 | confirmBindAIYouth (provider, token, options = {}) { |
| 1149 | options.url = '/auth/bind-aiyouth' |