Sync with L2jServer HighFive Jul 25th 2015.
This commit is contained in:
@@ -27,7 +27,7 @@ import java.util.Collection;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jserver.L2DatabaseFactory;
|
||||
import com.l2jserver.commons.database.pool.impl.ConnectionFactory;
|
||||
import com.l2jserver.loginserver.GameServerTable;
|
||||
import com.l2jserver.loginserver.GameServerTable.GameServerInfo;
|
||||
import com.l2jserver.loginserver.GameServerThread;
|
||||
@@ -82,7 +82,7 @@ public class ChangePassword extends BaseRecievePacket
|
||||
int passUpdated = 0;
|
||||
|
||||
// SQL connection
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement ps = con.prepareStatement("SELECT password FROM accounts WHERE login=?"))
|
||||
{
|
||||
ps.setString(1, accountName);
|
||||
@@ -101,7 +101,7 @@ public class ChangePassword extends BaseRecievePacket
|
||||
password = md.digest(password);
|
||||
|
||||
// SQL connection
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement ps = con.prepareStatement("UPDATE accounts SET password=? WHERE login=?"))
|
||||
{
|
||||
ps.setString(1, Base64.getEncoder().encodeToString(password));
|
||||
|
@@ -24,7 +24,7 @@ import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jserver.L2DatabaseFactory;
|
||||
import com.l2jserver.commons.database.pool.impl.ConnectionFactory;
|
||||
import com.l2jserver.loginserver.LoginController;
|
||||
import com.l2jserver.util.network.BaseRecievePacket;
|
||||
|
||||
@@ -60,7 +60,7 @@ public class RequestTempBan extends BaseRecievePacket
|
||||
|
||||
private void banUser()
|
||||
{
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement ps = con.prepareStatement("INSERT INTO account_data VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE value=?"))
|
||||
{
|
||||
ps.setString(1, _accountName);
|
||||
|
Reference in New Issue
Block a user