Permalink
Browse files

Remove function moved from server file to common file.

Caught by Tim Haines!
  • Loading branch information...
glasser committed Jul 27, 2013
1 parent 98d587d commit 03e0ca8a49b518ad26ebb6e6a8df99f3e2b8d6a6
Showing with 0 additions and 11 deletions.
  1. +0 −11 packages/accounts-oauth/oauth_server.js
@@ -1,14 +1,3 @@
-// Helper for registering OAuth based accounts packages.
-// Adds an index to the user collection.
-Accounts.oauth.registerService = function (name) {
- // Accounts.updateOrCreateUserFromExternalService does a lookup by this id,
- // so this should be a unique index. You might want to add indexes for other
- // fields returned by your service (eg services.github.login) but you can do
- // that in your app.
- Meteor.users._ensureIndex('services.' + name + '.id',
- {unique: 1, sparse: 1});
-};
-
// Listen to calls to `login` with an oauth option set. This is where
// users actually get logged in to meteor via oauth.
Accounts.registerLoginHandler(function (options) {

0 comments on commit 03e0ca8

Please sign in to comment.