MCPcopy Create free account
hub / github.com/DumbWareio/DumbDo / recordAttempt

Function recordAttempt

server.js:67–72  ·  view source on GitHub ↗
(ip)

Source from the content-addressed store, hash-verified

65
66// Record an attempt for an IP
67function recordAttempt(ip) {
68 const attempts = loginAttempts.get(ip) || { count: 0, lastAttempt: 0 };
69 attempts.count += 1;
70 attempts.lastAttempt = Date.now();
71 loginAttempts.set(ip, attempts);
72}
73
74// Cleanup old lockouts periodically
75setInterval(() => {

Callers 1

server.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected