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 +4 -4
- data/lib/sync_attr_with_auth0/model.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b76419c157c5efcb09afaea222cfd203ee37430e
|
4
|
+
data.tar.gz: 977b0c6fe1baf2f74ed83ed845a9feaf94a4e162
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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])
|