..
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user