Skip to content

Commit

Permalink
Fix use of getPropertyOrFile for database password
Browse files Browse the repository at this point in the history
  • Loading branch information
sebslsch committed Oct 18, 2024
1 parent ec75f89 commit d5bdf6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private Connection createConnection() throws UpgradeException {
final String driver = Config.getInstance().getProperty(Config.AlpineKey.DATABASE_DRIVER);
final String dbUrl = Config.getInstance().getProperty(Config.AlpineKey.DATABASE_URL);
final String user = Config.getInstance().getProperty(Config.AlpineKey.DATABASE_USERNAME);
final String password = Config.getInstance().getProperty(Config.AlpineKey.DATABASE_PASSWORD);
final String password = Config.getInstance().getPropertyOrFile(Config.AlpineKey.DATABASE_PASSWORD);
try {
Class.forName(driver);
return DriverManager.getConnection(dbUrl, user, password);
Expand Down

0 comments on commit d5bdf6f

Please sign in to comment.