Compare commits

...

6 Commits

Author SHA1 Message Date
carry
c0810e4352 Merge commit 'e6f36da1841d7e793b2c412f52bb12cd7767727f' 2025-02-20 17:51:10 +08:00
carry
53668b12e9 增加了前端密码校验 2025-02-20 17:49:43 +08:00
carry
e6f36da184 添加了密码符合要求校验 2025-02-20 17:49:09 +08:00
carry
22ed9ab4d7 Merge commit '20283e17b94864887dd5d9bda506a19ab0f12b70' 2025-02-20 13:27:46 +08:00
carry
20283e17b9 将nginx配置文件正确放入容器 2025-02-20 02:48:45 +08:00
carry
539c9c7453 修正了nginx镜像的spa路由问题 2025-02-20 01:19:55 +08:00

View File

@@ -82,6 +82,9 @@ const handleConfirm = async () => {
if (!createData.password) { if (!createData.password) {
throw new Error('密码不能为空') throw new Error('密码不能为空')
} }
if (!/^\d{6,}$/.test(createData.password)) {
throw new Error('密码必须为6位或以上的数字')
}
await userService.createUser({ await userService.createUser({
username: createData.username, username: createData.username,
password: createData.password, password: createData.password,