summaryrefslogtreecommitdiff
path: root/src/utils/tokencollector.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-10-03 22:14:24 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-10-03 22:21:41 +0200
commit4cbf5877c9ca5d3e5754e568fbadd670fe1f7ff6 (patch)
treee50cdb70ec69af7d7b1af79fbef13b78a4015aca /src/utils/tokencollector.cpp
parentaf0d672fcb9fb8da583f014b9875350e7480f467 (diff)
downloadmanaserv-4cbf5877c9ca5d3e5754e568fbadd670fe1f7ff6.tar.gz
manaserv-4cbf5877c9ca5d3e5754e568fbadd670fe1f7ff6.tar.bz2
manaserv-4cbf5877c9ca5d3e5754e568fbadd670fe1f7ff6.tar.xz
manaserv-4cbf5877c9ca5d3e5754e568fbadd670fe1f7ff6.zip
Limit login attempt frequency based on IP address
The previous method was broken because it set the "last time" to the current time when the client connected. So login would fail when the username and password were sent within a second from connecting, which is not desirable. If I'd have fixed this by setting the "last time" to login time minus one second, then an attacker would just need to reconnect for each login attempt. So now it uses an IP address based approach, where each IP can only try to log in once per second.
Diffstat (limited to 'src/utils/tokencollector.cpp')
0 files changed, 0 insertions, 0 deletions