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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user