devise-multi-factor 3.2.1 → 3.2.3

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
  SHA256:
3
- metadata.gz: b790306376953e31fbc613105e7e581d75c2d001b9b7596fa1512284fac3817a
4
- data.tar.gz: 117bf20fb42c0d70e9f6f5ee926b2bb8a8d64e91803c14d9d47b1565b99829d6
3
+ metadata.gz: cbb1b7ddcd52c103cb7dbcc8a5829abdfc07b68543bd027a345499e3ce8cf181
4
+ data.tar.gz: 9f29d1052a478e43af6dfa99b518f029204af98ffaf7dac281767883a9dae3fa
5
5
  SHA512:
6
- metadata.gz: edc39ac3f19009b58e2c6ec607421eca50bf7346d06c04c5b37982c88cdd41e39b195f5af7443fed7d5df34608b0481f0eb1d9adc58db1b17568394f7adb6986
7
- data.tar.gz: 63c0022150927b92e23240bf9d1b0fb941e9871f593074a3431c713a94ed78c07a33f34aef4769716cb81d3e0306557cae15d74aa46a40341044ae2aab1b4665
6
+ metadata.gz: 5531843322ec349f8f9b667a1c106714bb75163951ba92bdc33eeba1891631f5e4a517810ffa433cd2598715f7902d4ac0e7ad1ed47a0c1d032f1c6ccf2ee9a0
7
+ data.tar.gz: 7b94c72f55c0c386bb6c97967d3f985f0ce03fccda9f945b712add4bd90b89d6bfb24693e1cae703187c02004c4925d713f19065aa0e06092775975761c3fb91
@@ -12,11 +12,11 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
 
14
14
  steps:
15
- - uses: actions/checkout@v2
16
- - name: Set up Ruby 2.6
17
- uses: actions/setup-ruby@v1
15
+ - uses: actions/checkout@v3
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
18
18
  with:
19
- ruby-version: 2.6.x
19
+ ruby-version: '3.1'
20
20
 
21
21
  - name: Publish to GPR
22
22
  run: |
@@ -54,6 +54,10 @@ class Devise::TwoFactorAuthenticationController < DeviseController
54
54
  end
55
55
  end
56
56
 
57
+ def max_login_attempts_reached
58
+ render :max_login_attempts_reached
59
+ end
60
+
57
61
  def after_two_factor_success_path_for(resource)
58
62
  stored_location_for(resource_name) || :root
59
63
  end
@@ -65,7 +69,7 @@ class Devise::TwoFactorAuthenticationController < DeviseController
65
69
 
66
70
  if resource.max_login_attempts?
67
71
  sign_out(resource)
68
- render :max_login_attempts_reached
72
+ max_login_attempts_reached
69
73
  else
70
74
  render :show
71
75
  end
@@ -80,7 +84,7 @@ class Devise::TwoFactorAuthenticationController < DeviseController
80
84
  @limit = resource.max_login_attempts
81
85
  if resource.max_login_attempts?
82
86
  sign_out(resource)
83
- render :max_login_attempts_reached and return
87
+ max_login_attempts_reached and return
84
88
  end
85
89
  end
86
90
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
28
28
  s.add_runtime_dependency 'devise'
29
29
  s.add_runtime_dependency 'randexp'
30
30
  s.add_runtime_dependency 'rotp', '>= 4.0.0'
31
- s.add_runtime_dependency 'encryptor'
31
+ s.add_runtime_dependency 'lockbox'
32
32
 
33
33
  s.add_development_dependency 'bundler'
34
34
  s.add_development_dependency 'rake'
@@ -1,3 +1,3 @@
1
1
  module DeviseMultiFactor
2
- VERSION = "3.2.1".freeze
2
+ VERSION = "3.2.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-multi-factor
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitrii Golub
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-09-08 00:00:00.000000000 Z
12
+ date: 2023-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -68,7 +68,7 @@ dependencies:
68
68
  - !ruby/object:Gem::Version
69
69
  version: 4.0.0
70
70
  - !ruby/object:Gem::Dependency
71
- name: encryptor
71
+ name: lockbox
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
@@ -310,7 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
310
310
  - !ruby/object:Gem::Version
311
311
  version: '0'
312
312
  requirements: []
313
- rubygems_version: 3.0.3.1
313
+ rubygems_version: 3.3.3
314
314
  signing_key:
315
315
  specification_version: 4
316
316
  summary: Two factor authentication plugin for devise