api_user_auth 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/api_user_auth/auth_user.rb +1 -1
- data/lib/api_user_auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e3a51e15c4afdec13e573a31c1d6c33aec4f4896bb8d3075d8c11fb85ba0185
|
4
|
+
data.tar.gz: 2ceaec02a7a10ba8aeab3a005149880c891e121286fa571581a53ddd4b387723
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e42da9ff69bec2a5c5da2fad33042930c4da04ef70990aee41d49f8956f78be87068a6f5e61f81e04916cca22d26215c76dd9e5aa8bfcfa7d9dd41e35c04b27d
|
7
|
+
data.tar.gz: e7db776713c5d94c4f362ba05afbebd391778166821ecb34252d2c9a3db4837f08a1a4ede528807dbe656cdd9711c18e59fe04bd612647acace4e490c8760d85
|
@@ -97,13 +97,13 @@ module ApiUserAuth
|
|
97
97
|
|
98
98
|
if provider_token.blank?
|
99
99
|
auth_user = AuthUser.find_or_initialize_by(email: provider_data[:email])
|
100
|
-
ProviderToken.create_by_data(provider_data, auth_user)
|
101
100
|
auth_user.encrypted_password = params[:token]
|
102
101
|
auth_user.generate_token
|
103
102
|
auth_user.is_new = auth_user.new_record?
|
104
103
|
auth_user.user_provider_data = provider_data
|
105
104
|
auth_user.provider = params[:provider]
|
106
105
|
auth_user.save
|
106
|
+
ProviderToken.create_by_data(provider_data, auth_user)
|
107
107
|
auth_user
|
108
108
|
else
|
109
109
|
auth_user = provider_token.auth_user
|