Don't update IP twice

- IP is updated in datasource#updateSession after successful login
- Remove no longer used DataSource#updateIp
This commit is contained in:
ljacqu
2016-07-12 21:43:07 +02:00
parent 724de1e121
commit dccbd5262f
7 changed files with 0 additions and 72 deletions
@@ -139,11 +139,6 @@ public class AsynchronousLogin implements AsynchronousProcess {
captchaManager.increaseCount(name);
tempbanManager.increaseCount(ip);
if (!pAuth.getIp().equals(ip)) {
pAuth.setIp(ip);
database.updateIp(pAuth.getNickname(), ip);
}
String email = pAuth.getEmail();
boolean passwordVerified = forceLogin || passwordSecurity.comparePassword(
password, pAuth.getPassword(), player.getName());