forest_liana 3.0.2 → 3.0.3

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: ade180d6952ccc60a8b61e18c75345a952bc62e8
4
- data.tar.gz: 7b172f7074b445486d68f5d3344d7f7eb4c1b8a7
3
+ metadata.gz: dc98ddb9749217837898289e9f8d9a1794c82713
4
+ data.tar.gz: ebaf7c93cd0065ad266a6be383cd30d03694c145
5
5
  SHA512:
6
- metadata.gz: b1aac1d9e145c1ff23fcc7e4e118cad8350d729f96218873ac4642f6dfad2cc51eb9cebaed8c16b56a6f478c135a0dd2fe08fd3dddeb4616c8a32c6c75a1f088
7
- data.tar.gz: 5f4cd7891e8abf7f7877edf4edd2ab6a0c96923e7b676e98659156e5a91993c8f463537fa7f045df77882ba8afadf8518830fa42f5fb65fd2a1146393f75a084
6
+ metadata.gz: a747c24bf814890b7ce60a672a09998074ee8a40dacdc447e31b377d92a8836fc1224bba80828daadcf418dc6f0519ef911301aaa7fb4b0fa4f0ba4e76b3d790
7
+ data.tar.gz: 06f1ba8285142437c3f74330517a447108cde1cd3f23051d6a8f0dad0d5e71c5550b15cd5b192f7c8357a36e14a64c62ae4eb848b905e378f62b413703c69e8a
@@ -84,7 +84,9 @@ module ForestLiana
84
84
  else
85
85
  # NOTICE: Set a cookie to ensure secure authentication using export feature.
86
86
  # NOTICE: The token is empty at first authentication step if the 2FA option is active.
87
- response.set_cookie("forest_session_token", reponse_data[:token]) if reponse_data[:token]
87
+ if reponse_data[:token]
88
+ response.set_cookie("forest_session_token", { value: reponse_data[:token], expires: (Time.current + 14.days) })
89
+ end
88
90
 
89
91
  render(json: reponse_data, serializer: nil)
90
92
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "3.0.2"
2
+ VERSION = "3.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-10 00:00:00.000000000 Z
11
+ date: 2019-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails