Skip to content
Snippets Groups Projects
Commit 6f81833f authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Merge branch '2.2'

parents 34c77162 be8d4543
Branches
Tags
No related merge requests found
...@@ -222,9 +222,9 @@ public class UserService implements IUserService { ...@@ -222,9 +222,9 @@ public class UserService implements IUserService {
if (null == tries) { if (null == tries) {
tries = 0; tries = 0;
} }
if (tries < 5) { if (tries < loginTryLimit) {
loginTries.put(addr, ++tries); loginTries.put(addr, ++tries);
if (5 == tries) { if (loginTryLimit == tries) {
LOGGER.info("Temporarily banned {} from login.", new Object[] {addr}); LOGGER.info("Temporarily banned {} from login.", new Object[] {addr});
loginBans.add(addr); loginBans.add(addr);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment