@samitouri / QOSami-HFS / commits / 8570d957

fix: (regression beta) plugins/antibrute: error in console #768

Massimo Melina committed Oct 9, 2024 at 11:11 UTC 8570d9574caeab982ccfcc010207326cf1f1c71b
1 file changed +1 -1
plugins/antibrute/plugin.js
+1 -1
@@ -19,7 +19,7 @@ exports.init = api => {
19 const { block } = api.require('./block')
20 return {
21 unload: api.events.multi({
22 - attemptingLogin: async ctx => {
22 + attemptingLogin: async ({ ctx }) => {
23 const { ip } = ctx
24 const now = new Date
25 const rec = getOrSet(byIp, ip, () => ({ attempts: 0, next: now }))