sync_attr_with_auth0 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b4c90d565c0bcaf4fa8b929320b0aa1a5c066e6
4
- data.tar.gz: fde7fe0f1445c8c7dcdd4a842e81edc4f041ae8e
3
+ metadata.gz: b76419c157c5efcb09afaea222cfd203ee37430e
4
+ data.tar.gz: 977b0c6fe1baf2f74ed83ed845a9feaf94a4e162
5
5
  SHA512:
6
- metadata.gz: d1aeec3b8019ebcd2593eeae4c0a87b794d2e7cfac906c15e6dfb1721695e5ccc1cb6bcaafc363e41c5fca82bd155e9ca711c6a8e68b0a7bda85e03201b2656c
7
- data.tar.gz: f321cc9825122ab90ac486d169525199ae14d010d0cb932a1cc50146294f010d99748af9761ae3c97e0cd5c1df294c302140b28d6613d0f73f6cd6801425602f
6
+ metadata.gz: 29c4339221af8e3520b9dd871c9ca7be2b0c7a8b9944d3c839ac3f06e3777521e788b25f6e318d8e4f4b7a0cb050d325e0e2671487ac7f2cc1683329a7e299d4
7
+ data.tar.gz: d1325783fd9e56816624cb81e68d51dd4ab579eb4762393272bf2b7f7269cc09b601add476e25d285cb653a7f43816745ff84d4775cb201f0ee8fa814ef2bd33
@@ -116,7 +116,12 @@ module SyncAttrWithAuth0
116
116
 
117
117
  if (
118
118
  auth0_sync_options[:sync_atts].index(auth0_sync_options[:password_att]) and
119
- self.send("#{auth0_sync_options[:password_att]}_changed?")
119
+ # Because the password being passed to auth0 probably is not a real
120
+ # field (and if it is it needs to be the unencrypted value), we
121
+ # can't rely on checking if the password attribute changed (chances
122
+ # are, that method does not exist). So assume the password attribute
123
+ # is only set if it's being changed.
124
+ !self.send(auth0_sync_options[:password_att]).nil?
120
125
  )
121
126
  # The password should be sync'd and was changed
122
127
  args['password'] = self.send(auth0_sync_options[:password_att])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sync_attr_with_auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick McGraw