authentication-zero 2.16.8 → 2.16.9
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: d695ca0e7c4d270b6fe07929260341edf25e6e8ac1ab451d9de956795cdf92f0
|
4
|
+
data.tar.gz: ac4c926f168b43c8daeebb676d7d7f00be6667c1b5627f5a7b91c1038a7d9e22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d3421d5fb49b0b9dda2154ea9d0cbf7a36b25e3a2e5afaa8ec46b9ea17da532248e2d518104a934f68a13c08df175c0e2f09d22ab66c9b58072b29f4de7624e
|
7
|
+
data.tar.gz: da27bacca31013b8f8a0d30f25f135f6848abbbf30f077fd3b3ead2a5110ad48e7445c6154a7b9fb6dc5245c3713df7db9e9141ffaf69c82da4cb1eafa47d941
|
data/Gemfile.lock
CHANGED
@@ -5,7 +5,7 @@ class ApplicationController < ActionController::API
|
|
5
5
|
before_action :authenticate
|
6
6
|
<%- if options.lockable? %>
|
7
7
|
def require_lock(wait: 1.hour, attempts: 10)
|
8
|
-
counter = Kredis.counter("require_lock:#{request.remote_ip}:#{
|
8
|
+
counter = Kredis.counter("require_lock:#{request.remote_ip}:#{controller_path}:#{action_name}", expires_in: wait)
|
9
9
|
counter.increment
|
10
10
|
|
11
11
|
if counter.value > attempts
|