Commit Graph

10 Commits (b589fcc3b06449f6d3eb9e97dcf30005e184cb87)

Author SHA1 Message Date
Richard van der Hoff 9ff52b182f Allow fetch() to be stubbed for the RtsClient
- so that we can write some tests for it.
2017-06-15 01:52:24 +01:00
Luke Barnard 29f5e88f6a Instead of sending userId, userEmail, send sid, client_secret
This has the benefit of being possible from the _second_ riot instance, which may not actually have the email of the user registering. With these parameters, the RTS can get the email and user ID itself.

(see https://github.com/matrix-org/riot-team-server/pull/15)
2017-02-10 16:50:25 +00:00
Luke Barnard af19ea8bb7 Document login API 2017-02-07 12:01:44 +00:00
Luke Barnard 173e80a5de Get team_token from the RTS on login
Use the /login endpoint of the RTS to get the team token when the user has successfully logged in.
2017-02-03 14:34:24 +00:00
Luke Barnard 028c40e293 Linting 2017-02-01 11:16:14 +00:00
Luke Barnard fa1981ce09 Use whatwg-fetch instead of browser-request 2017-02-01 10:39:52 +00:00
Luke Barnard 2f188770e5 Typo 2017-01-31 15:59:38 +00:00
Luke Barnard 4c4cc585c7 Throw errors on !==200 status codes from RTS 2017-01-31 13:40:01 +00:00
Luke Barnard 878e5593ba Implement tracking of referrals (#659)
* Implement tracking of referrals

This also modifies (or fixes) auto-joining.
2017-01-31 11:13:05 +00:00
Luke Barnard 4e0889454a GET /teams from RTS instead of config.json
Now that the RTS contains config for teams, use GET /teams to get that information so that users will see be able to register as a team (but not yet auto-join rooms, be sent to welcome page or be tracked as a referral).
2017-01-30 15:50:31 +00:00