提交 cb97bb37 authored 作者: Thomas Mueller's avatar Thomas Mueller

The H2 Console trimmed the password.

上级 ee27b252
......@@ -615,7 +615,9 @@ public class WebServer implements Service {
org.h2.Driver.load();
Properties p = new Properties();
p.setProperty("user", user.trim());
p.setProperty("password", password.trim());
// do not trim the password, otherwise an
// encrypted H2 database with empty user password doesn't work
p.setProperty("password", password);
if (url.startsWith("jdbc:h2:")) {
if (ifExists) {
url += ";IFEXISTS=TRUE";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论