omniauth-multiprovider 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c762605fa4a0ae213a93da5a9e27dce5593f428c
|
4
|
+
data.tar.gz: 79aaab1d0fcc107ab6e7d6d2cd9e6c91f33f2522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3d693683f31ecf6e014dccf9e4d08d88a1a8e14d03f7fd6c50e2df08bd0e43fa32ab17fea47e79a5934ebac31e34ccf2f4a7bcf5b2ac94d6547573d326fbe94
|
7
|
+
data.tar.gz: 2d257ae973cce1ef8b3cea691520870fc0fd21192e395516462bd8c22ce42d74a0f3b6268fa9f82df37d8e05501b5c4332d8bc9545d959404cddebec95a2cb30
|
@@ -9,6 +9,7 @@ module OmniAuth
|
|
9
9
|
autoload :EmailMockups, 'omniauth/multiprovider/models/email_mockups'
|
10
10
|
autoload :Error, 'omniauth/multiprovider/error'
|
11
11
|
autoload :AlreadyBoundError, 'omniauth/multiprovider/error'
|
12
|
+
autoload :EmailTakenError, 'omniauth/multiprovider/error'
|
12
13
|
end
|
13
14
|
module Provider
|
14
15
|
autoload :Abstract, 'omniauth/provider/abstract'
|
@@ -49,7 +49,7 @@ module OmniAuth
|
|
49
49
|
end
|
50
50
|
|
51
51
|
# Can be customized in each model
|
52
|
-
def create_from_oauth(attributes,
|
52
|
+
def create_from_oauth(attributes, oauth_data)
|
53
53
|
raise OmniAuth::MultiProvider::EmailTakenError if exists?(email: attributes[:email])
|
54
54
|
create!(attributes)
|
55
55
|
end
|