Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix add_provider_to_user method bug.

  • Loading branch information...
commit 5c7c77f4b74f0326783f3ab2eef6bead09b99ec0 1 parent 4606faf
@ppworks ppworks authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sorcery/controller/submodules/external.rb
View
2  lib/sorcery/controller/submodules/external.rb
@@ -76,7 +76,7 @@ def add_provider_to_user(provider)
user_hash = provider.get_user_hash
config = user_class.sorcery_config
- user = current_user.send(config.authentications_class.to_s.downcase.pluralize).build(config.provider_uid_attribute_name => user_hash[:uid], config.provider_attribute_name => provider)
+ user = current_user.send(config.authentications_class.to_s.downcase.pluralize).build(config.provider_uid_attribute_name => user_hash[:uid], config.provider_attribute_name => provider_name)
user.save(:validate => false)
return user
Please sign in to comment.
Something went wrong with that request. Please try again.