login_attack_report 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71b9bbd646148d52bae9b00900a7dbab4042081d
|
|
4
|
+
data.tar.gz: a0c17916185c00e8c9d2b32440d078619b6f4c0d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e900723cd69d034cfff23c70d278067efffbd1c1cb6363dfe63dab74806ba100e2fc38ea1d677adaca375ca0f4f23b639fb83d37569c0e31f729e83ba2a15de
|
|
7
|
+
data.tar.gz: ba911c5a871a1b048fdd4703a797fbaff9dc7de7a5e099171f9e3700e74402efa5af07062daa9eb7193bb31d8a43209ed3b2243e35689ac179a60b07bebc376e
|
|
@@ -13,7 +13,7 @@ module LoginAttackReport
|
|
|
13
13
|
'object_changes like \'%sign_in_count:%\'',
|
|
14
14
|
Time.now.prev_month.beginning_of_month,
|
|
15
15
|
Time.now.prev_month.end_of_month
|
|
16
|
-
).group(:item_id).having("count(item_id) > #{
|
|
16
|
+
).group(:item_id).having("count(item_id) > #{LoginAttackReport.login_ok_limit}")
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def login_ng_limit_over(model)
|
|
@@ -24,7 +24,7 @@ module LoginAttackReport
|
|
|
24
24
|
'object_changes like \'%sign_in_count:%\'',
|
|
25
25
|
Time.now.prev_month.beginning_of_month,
|
|
26
26
|
Time.now.prev_month.end_of_month
|
|
27
|
-
).group(:item_id).having("count(item_id) > #{
|
|
27
|
+
).group(:item_id).having("count(item_id) > #{LoginAttackReport.login_ng_limit}")
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def ip_limit_over(model)
|