({ userID, name, email, gplusID }, options)
| 39 | }, |
| 40 | |
| 41 | signupWithGPlus ({ userID, name, email, gplusID }, options) { |
| 42 | if (options == null) { options = {} } |
| 43 | return fetchJson(this.url(userID, 'signup-with-gplus'), _.assign({}, options, { |
| 44 | method: 'POST', |
| 45 | credentials: 'include', |
| 46 | json: { name, email, gplusID, gplusAccessToken: application.gplusHandler.token() } |
| 47 | })) |
| 48 | }, |
| 49 | |
| 50 | signupWithOAuth2 ({ userID, email, ...attrs }) { |
| 51 | return fetchJson(this.url(userID, 'signup-with-oauth2'), _.assign({}, { |