Allow login from custom oAuth in accounts meld

pull/642/head
Rodrigo Nascimento 11 years ago
parent 3a64050837
commit dcd0853c4e
  1. 2
      server/configuration/accounts_meld.coffee

@ -1,6 +1,6 @@
orig_updateOrCreateUserFromExternalService = Accounts.updateOrCreateUserFromExternalService
Accounts.updateOrCreateUserFromExternalService = (serviceName, serviceData, options) ->
if serviceName not in ['facebook', 'github', 'gitlab', 'google', 'meteor-developer', 'linkedin', 'twitter']
if serviceName not in ['facebook', 'github', 'google', 'meteor-developer', 'linkedin', 'twitter'] and serviceData._oAuthCustom isnt true
return
if serviceName is 'meteor-developer'

Loading…
Cancel
Save