diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/MySQLSourceConfig.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/MySQLSourceConfig.java index 82dafef4..a3b787f5 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/MySQLSourceConfig.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/MySQLSourceConfig.java @@ -42,6 +42,21 @@ public MySQLSourceConfig(String poolName) { this.poolName = poolName; } + public MySQLSourceConfig(String poolName, String address, int port, String username, String password, String database) { + this.poolName = poolName; + this.address = address; + this.port = port; + this.username = username; + this.password = password; + this.database = database; + } + + public MySQLSourceConfig(String poolName, DataSource source, boolean hikari) { + this.poolName = poolName; + this.source = source; + this.hikari = hikari; + } + @Override public synchronized void close() { if (hikari) diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/request/auth/AuthRequest.java b/LauncherAPI/src/main/java/pro/gravit/launcher/request/auth/AuthRequest.java index 5c0b5a6d..e51b8505 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/request/auth/AuthRequest.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/request/auth/AuthRequest.java @@ -55,6 +55,14 @@ public AuthRequest(String login, String password, String auth_id, ConnectTypes a this.getSession = false; } + public AuthRequest(String login, AuthPasswordInterface password, String auth_id, boolean getSession, ConnectTypes authType) { + this.login = login; + this.password = password; + this.auth_id = auth_id; + this.getSession = getSession; + this.authType = authType; + } + public static void registerProviders() { if (!registerProviders) { providers.register("plain", AuthPlainPassword.class);