提交 813cad1c 编写于 作者: O o2null

Merge branch 'fix/setConfig' into 'develop'

在服务器启动时webServer\x_desktop\res\config\config.js增加密码规则属性

See merge request o2oa/o2oa!676
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
"passwordRegexHint": "6位以上,包含数字和字母.", "passwordRegexHint": "6位以上,包含数字和字母.",
"register": "disable", "register": "disable",
"superPermission": true, "superPermission": true,
"personUnitOrderByAsc": true,
"###captchaLogin": "是否启用验证码登录,默认值:true###", "###captchaLogin": "是否启用验证码登录,默认值:true###",
"###codeLogin": "是否启用验证码登录,默认值:true###", "###codeLogin": "是否启用验证码登录,默认值:true###",
"###bindLogin": "是否启用扫描二维码登录,默认值:false###", "###bindLogin": "是否启用扫描二维码登录,默认值:false###",
...@@ -33,6 +32,5 @@ ...@@ -33,6 +32,5 @@
}, },
"###failureInterval": "登录限制时间(分钟)###", "###failureInterval": "登录限制时间(分钟)###",
"###failureCount": "尝试登录次数###", "###failureCount": "尝试登录次数###",
"###tokenExpiredMinutes": "token时长,分钟###", "###tokenExpiredMinutes": "token时长,分钟###"
"###personUnitOrderByAsc": "人员组织排序是否为升序,true为升序(默认),false为降序###"
} }
\ No newline at end of file
...@@ -189,6 +189,11 @@ public class WebServerTools extends JettySeverTools { ...@@ -189,6 +189,11 @@ public class WebServerTools extends JettySeverTools {
map.put("indexPage", Config.portal().getIndexPage()); map.put("indexPage", Config.portal().getIndexPage());
map.put("webSocketEnable", Config.communicate().wsEnable()); map.put("webSocketEnable", Config.communicate().wsEnable());
map.put("urlMapping", Config.portal().getUrlMapping()); map.put("urlMapping", Config.portal().getUrlMapping());
/* 密码规则 */
map.put("passwordRegex",Config.person().getPasswordRegex() );
map.put("passwordRegexHint", Config.person().getPasswordRegexHint());
FileUtils.writeStringToFile(file, gson.toJson(map), DefaultCharset.charset); FileUtils.writeStringToFile(file, gson.toJson(map), DefaultCharset.charset);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册