Commit Graph

5 Commits

Author SHA1 Message Date
David Glasser
dd77a26acc Rename Accounts.configuration to Accounts.loginServiceConfiguration.
Matches other references to it in the code, and is harder to confuse with
Accounts.config.
2012-10-09 19:18:02 -07:00
David Glasser
7b758a0c9b Rename and refactor Accounts.updateOrCreateUser.
This is an internal function only used by OAuth implementations and the
equivalent, so rename to a more specific name:
Accounts.updateOrCreateUserFromExternalService.

Change the signature to directly take serviceName and serviceData instead of a
nested data structure with a very specific structure. Similarly, change
Accounts.oauth.registerService's handleOauthRequest callback to un-nest the
service data.

Throw errors on misuse (if you try to use it with the "password" or
soon-to-be-introduced "resume" services, or if you don't provide an id).

Avoid doing no-op user updates if there is nothing new in "extra".
2012-10-08 09:18:55 -07:00
Avital Oliver
c086ca0912 accounts-github: cleanup, small tweaks 2012-10-05 00:22:09 -07:00
Braden Simpson
6da4833885 added username to the identity. 2012-09-27 11:19:10 -07:00
Braden Simpson
55e291e671 Added the accounts-github files into the main meteor repo 2012-09-24 19:57:06 -07:00