sync_attr_with_auth0 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sync_attr_with_auth0/model.rb +10 -6
- 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: 05bef5bfbb97159ccc9c30c6ea45f7cc2c6052ef
|
4
|
+
data.tar.gz: 8b709d48e142151979345675971542d9b9892765
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1656c5409b04e8d47121e481d4726007b09e060e5bfa014576df1d83d8b9459748eb89f783a38050b5631c44ca91bddaa6598980c45c7c715906c44b4e67a2cc
|
7
|
+
data.tar.gz: 6360ac624bd0ca8eb33fe3d6690c692d99aebf7a207e7515de23602731232de237ed9b508535b6b57596515dc535ad015009d5edab5e1307b6fb0b4c5f8aff6c
|
@@ -99,17 +99,21 @@ module SyncAttrWithAuth0
|
|
99
99
|
|
100
100
|
password = auth0_user_password
|
101
101
|
email_verified = auth0_email_verified?
|
102
|
+
args = {
|
103
|
+
'email' => self.send(email_att),
|
104
|
+
'password' => password,
|
105
|
+
'connection' => connection_name,
|
106
|
+
'email_verified' => email_verified
|
107
|
+
}.merge(changes)
|
102
108
|
|
103
109
|
response = SyncAttrWithAuth0::Auth0.make_request(
|
104
110
|
access_token,
|
105
111
|
'post',
|
106
112
|
"/api/users",
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
'email_verified' => email_verified
|
112
|
-
}.merge(changes))
|
113
|
+
args)
|
114
|
+
|
115
|
+
puts email_verified.inspect
|
116
|
+
puts args.inspect
|
113
117
|
|
114
118
|
response = JSON.parse(response)
|
115
119
|
|