This commit is contained in:
server
2025-06-20 09:05:44 +08:00
parent b11da17739
commit bfa9aba489
2 changed files with 2 additions and 4 deletions
@@ -69,11 +69,8 @@ public class SysUserController {
return Result.error("用户名已存在!");
}
}
if (!ReUtil.isMatch("^(?=.*[a-z])(?=.*[A-Z])(?=.*\\\\d)(?=.*[!@#$%^&*()\\\\-_=+{};:,<.>]).{8,20}$", user.getLoginname())) {
return Result.error("密码必须包含大小写字母、数字和特殊符号,且长度在8-20位之间!");
}
if (!ReUtil.isMatch("^(?=.*[a-z])(?=.*[A-Z])(?=.*\\\\d)(?=.*[!@#$%^&*()\\\\-_=+{};:,<.>]).{8,20}$", user.getPassword())) {
if (!ReUtil.isMatch("^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[!@#$%^&*()\\-_=+{};:,<.>]).{8,20}$", user.getPassword())) {
return Result.error("密码必须包含大小写字母、数字和特殊符号,且长度在8-20位之间!");
}
@@ -285,6 +285,7 @@ layout("/layouts/platform.html"){
checkStrictly: true,
multiple: false,
value: "id",
label: "name",
lazyLoad: function (node, resolve) {
const url = base + "/platform/sys/unit/tree"
self.$axios.post(url, { pid: node.value }).then((res) => {