This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Wrong password
#15
(19.10.2023, 12:58)admin Wrote: Daniel's code will only log existing normal users (not admin). This script will log only failed attempts for all users:
Code:
items = db:getall([[
  SELECT *
  FROM user_logs
  WHERE failed=1
  ORDER BY user_logs.id DESC
  LIMIT 50
]])

for _, item in ipairs(items) do
  log(item.login, item.ip, item.created)
end
Hello admin,
This script is functioning, but it logs full even when there is just one incorrect password attempt. Could you please explain what it does exactly? I want it to log only the actual instances of entering the wrong password.
Reply


Messages In This Thread
Wrong password - by a455115 - 19.10.2023, 09:33
RE: Wrong password - by Daniel - 19.10.2023, 09:47
RE: Wrong password - by a455115 - 19.10.2023, 10:43
RE: Wrong password - by Daniel - 19.10.2023, 11:06
RE: Wrong password - by a455115 - 19.10.2023, 11:29
RE: Wrong password - by Daniel - 19.10.2023, 11:31
RE: Wrong password - by a455115 - 19.10.2023, 11:40
RE: Wrong password - by Daniel - 19.10.2023, 11:42
RE: Wrong password - by a455115 - 19.10.2023, 11:43
RE: Wrong password - by Daniel - 19.10.2023, 11:45
RE: Wrong password - by Daniel - 19.10.2023, 11:46
RE: Wrong password - by a455115 - 19.10.2023, 11:51
RE: Wrong password - by Daniel - 19.10.2023, 11:56
RE: Wrong password - by admin - 19.10.2023, 12:58
RE: Wrong password - by a455115 - 20.10.2023, 05:53
RE: Wrong password - by Daniel - 20.10.2023, 08:10

Forum Jump: