devise-multi-factor 3.2.2 → 3.2.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96a02382ae3f76aececf2dd627d3b2d569717415f117fc77d04d2e226144b838
|
4
|
+
data.tar.gz: 6fefdf2bed71cfd902cf616c26fda765b452d04e64abeeb12e5221c42b5895d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8048102b6c4b1f926ce0cfdfd59b0a4f2b79f3bed0952d44257ddb5c3fadbcad3b1d9f72b206d7de7dff86150339974e96344048fa6e03b47c54caa5033042e4
|
7
|
+
data.tar.gz: c1913898b7e3fb27897955f1526051f33d76c1c80a61212e2246aeb35699a834135c0c4a2ef5a952770bdcb07767c7836e5748ba52e6f14ef82f8800a666c64e
|
@@ -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
|
-
|
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
|
-
|
87
|
+
max_login_attempts_reached and return
|
84
88
|
end
|
85
89
|
end
|
86
90
|
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.
|
4
|
+
version: 3.2.4
|
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: 2023-
|
12
|
+
date: 2023-03-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|