Skip to content

Commit

Permalink
Bug fix: import password.txt even if hspw="" for LDEV-3439
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Apr 12, 2021
1 parent 3b750a8 commit acf13e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/lucee/runtime/config/ConfigWebFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@ private static boolean createSaltAndPW(Struct root, Config config) {
}

// no password yet
if (config instanceof ConfigServer && !root.containsKey("hspw") && !root.containsKey("adminhspw") && !root.containsKey("pw") && !root.containsKey("adminpw")
&& !root.containsKey("password") && !root.containsKey("adminpassword")) {
if (config instanceof ConfigServer && StringUtil.isEmpty(root.get("hspw",""), true) && StringUtil.isEmpty(root.get("adminhspw",""), true) && StringUtil.isEmpty(root.get("pw",""), true) && StringUtil.isEmpty(root.get("adminpw",""), true)
&& StringUtil.isEmpty(root.get("password",""), true) && StringUtil.isEmpty(root.get("adminpassword",""), true)) {
ConfigServer cs = (ConfigServer) config;
Resource pwFile = cs.getConfigDir().getRealResource("password.txt");
if (pwFile.isFile()) {
Expand Down

0 comments on commit acf13e9

Please sign in to comment.