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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 919fe87dc523bd87a139719d455c6b56fdcf683297da6cbef1a5002df04caf02
4
- data.tar.gz: 549d2a220f4ffdea89fbb4736a0ee7ebc517a835087fb5dab1d0fc5fe97586e5
3
+ metadata.gz: 2e3a51e15c4afdec13e573a31c1d6c33aec4f4896bb8d3075d8c11fb85ba0185
4
+ data.tar.gz: 2ceaec02a7a10ba8aeab3a005149880c891e121286fa571581a53ddd4b387723
5
5
  SHA512:
6
- metadata.gz: 157d379f9b10e3280a3219c8b88c20e5196b02f8083b63f5646ab6fc2c45e1b186599eb7bfdd68380ee92abadc07292707bb91aa23c2cfc7ee4f6c14a413506b
7
- data.tar.gz: 5381d7f70e4bedf673c45072f3955b196c1a90d7bd56f21e6213accbdf90cbf36dfc72253543c13a8546e661f7a3b07c8a614f6afd6c5a5aee5ff3037593383e
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
@@ -1,3 +1,3 @@
1
1
  module ApiUserAuth
2
- VERSION = '0.1.8'.freeze
2
+ VERSION = '0.1.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_user_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex M