altcha 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/altcha/version.rb +1 -1
- data/lib/altcha.rb +3 -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: 26bd90d5f8f25ec3b565a8686fe424421326163149ce34e2fe94d9b335815394
|
4
|
+
data.tar.gz: d8a48c54a34721b77847b765c428b1068c1c6f611c4a133c5da6e77074c6e6c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 646c34c483cfbb68003e149b0ccf297d0b57072f6a1df6df3fbae555fd714a1a37dd3c8333e5dec61c024ef92655ba1983333b79984372775559291c2b635db0
|
7
|
+
data.tar.gz: 8670ab596f21009624bc1808fc7f952de9431df58a2752b5c2170d34fb8970d953550e35566bdfba7d383a27be09b17fbdecd6b4946becf7fd1b2eac49be98bf
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/altcha/version.rb
CHANGED
data/lib/altcha.rb
CHANGED
@@ -376,7 +376,7 @@ module Altcha
|
|
376
376
|
|
377
377
|
hash_data = hash(payload.algorithm, payload.verification_data)
|
378
378
|
expected_signature = hmac_hex(payload.algorithm, hash_data, hmac_key)
|
379
|
-
|
379
|
+
|
380
380
|
params = URI.decode_www_form(payload.verification_data).to_h
|
381
381
|
verification_data = ServerSignatureVerificationData.new.tap do |v|
|
382
382
|
v.classification = params['classification'] || nil
|
@@ -385,6 +385,8 @@ module Altcha
|
|
385
385
|
v.email = params['email'] || nil
|
386
386
|
v.expire = params['expire'] ? params['expire'].to_i : nil
|
387
387
|
v.fields = params['fields'] ? params['fields'].split(',') : nil
|
388
|
+
v.fields_hash = params['fieldsHash'] || nil
|
389
|
+
v.ip_address = params['ipAddress'] || nil
|
388
390
|
v.reasons = params['reasons'] ? params['reasons'].split(',') : nil
|
389
391
|
v.score = params['score'] ? params['score'].to_f : nil
|
390
392
|
v.time = params['time'] ? params['time'].to_i : nil
|