mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-08 17:37:34 +01:00
Empty mysql pass allowed
This commit is contained in:
parent
256eb6cb91
commit
09c8955096
@ -69,7 +69,7 @@ public class DBPreparer {
|
||||
String database = System.getenv(CIProperties.MYSQL_DATABASE);
|
||||
String user = System.getenv(CIProperties.MYSQL_USER);
|
||||
String pass = System.getenv(CIProperties.MYSQL_PASS);
|
||||
if (Verify.containsNull(database, user, pass)) {
|
||||
if (Verify.containsNull(database, user)) {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
@ -82,7 +82,7 @@ public class DBPreparer {
|
||||
|
||||
config.set(DatabaseSettings.MYSQL_DATABASE, formattedDatabase);
|
||||
config.set(DatabaseSettings.MYSQL_USER, user);
|
||||
config.set(DatabaseSettings.MYSQL_PASS, pass);
|
||||
config.set(DatabaseSettings.MYSQL_PASS, pass != null ? pass : "");
|
||||
config.set(DatabaseSettings.MYSQL_HOST, "127.0.0.1");
|
||||
config.set(DatabaseSettings.TYPE, dbName);
|
||||
return Optional.of(formattedDatabase);
|
||||
|
Loading…
Reference in New Issue
Block a user