mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Bad Login (Clientside) in MySQLAuthCoreProvider
This commit is contained in:
parent
867f367860
commit
e36cfea4f9
1 changed files with 4 additions and 0 deletions
|
@ -166,6 +166,8 @@ public void init(LaunchServer server) {
|
|||
|
||||
protected boolean updateAuth(User user, String accessToken) throws IOException {
|
||||
try (Connection c = mySQLHolder.getConnection()) {
|
||||
MySQLUser mySQLUser = (MySQLUser) user;
|
||||
mySQLUser.accessToken = accessToken;
|
||||
PreparedStatement s = c.prepareStatement(updateAuthSQL);
|
||||
s.setString(1, accessToken);
|
||||
s.setString(2, user.getUUID().toString());
|
||||
|
@ -179,6 +181,8 @@ protected boolean updateAuth(User user, String accessToken) throws IOException {
|
|||
@Override
|
||||
protected boolean updateServerID(User user, String serverID) throws IOException {
|
||||
try (Connection c = mySQLHolder.getConnection()) {
|
||||
MySQLUser mySQLUser = (MySQLUser) user;
|
||||
mySQLUser.serverId = serverID;
|
||||
PreparedStatement s = c.prepareStatement(updateServerIDSQL);
|
||||
s.setString(1, serverID);
|
||||
s.setString(2, user.getUUID().toString());
|
||||
|
|
Loading…
Reference in a new issue