devise-multi-factor 3.2.2 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbb1b7ddcd52c103cb7dbcc8a5829abdfc07b68543bd027a345499e3ce8cf181
|
4
|
+
data.tar.gz: 9f29d1052a478e43af6dfa99b518f029204af98ffaf7dac281767883a9dae3fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5531843322ec349f8f9b667a1c106714bb75163951ba92bdc33eeba1891631f5e4a517810ffa433cd2598715f7902d4ac0e7ad1ed47a0c1d032f1c6ccf2ee9a0
|
7
|
+
data.tar.gz: 7b94c72f55c0c386bb6c97967d3f985f0ce03fccda9f945b712add4bd90b89d6bfb24693e1cae703187c02004c4925d713f19065aa0e06092775975761c3fb91
|
@@ -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
|