two_factor_authentication 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 566b436b169596cae3cec7e70462d28267ca1e7a
4
- data.tar.gz: 64230bdeb7309402dccddec2b8a4412f428b8422
3
+ metadata.gz: ba9192cf04aafc95a917e76b6efef8217fb22152
4
+ data.tar.gz: fe60bb1323aead63cb3712857e88bf4eaab08cfc
5
5
  SHA512:
6
- metadata.gz: a0a07c64d4d12a6ada6d39a6d94cb46decfe396fd94fa31c277c1e160fcecc9b6e09cad64b2baf6489dfb0409c27eca3205cf2ba1fdd0c30b137a14505d68fa5
7
- data.tar.gz: fa3439bf69431c3325a37ca2ddf652003ce8c91877f092099bc6661d920264f38e9885b8b590355030808264f6f60874baa2fdc006487ed9ac66fbbc0a7aac96
6
+ metadata.gz: 9a3d4c7cd0bb5eb3af1bc322ee3cad89a38bb8316178a9050dc5cce11f006930f3c3b916b41e29a1594f3acbc360814d831c6816e453504c21bd93b00b0834d4
7
+ data.tar.gz: e651f87940c8fc7d55b653c010c30da565cd18e2bcfd7708dc12c657dd953199f389aae800973b1a5bbfb6d09fdadf5d7689e3b28fe11403f7df3fcece5f2e15
@@ -47,7 +47,7 @@ class Devise::TwoFactorAuthenticationController < DeviseController
47
47
  if expires_seconds && expires_seconds > 0
48
48
  cookies.signed[TwoFactorAuthentication::REMEMBER_TFA_COOKIE_NAME] = {
49
49
  value: "#{resource.class}-#{resource.public_send(Devise.second_factor_resource_id)}",
50
- expires: expires_seconds.from_now
50
+ expires: expires_seconds.seconds.from_now
51
51
  }
52
52
  end
53
53
  end
@@ -1,3 +1,3 @@
1
1
  module TwoFactorAuthentication
2
- VERSION = "2.1.0".freeze
2
+ VERSION = "2.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: two_factor_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitrii Golub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-29 00:00:00.000000000 Z
11
+ date: 2018-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails