Compare commits

...

8 Commits

2 changed files with 4 additions and 1 deletions

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,

View File

@@ -2,7 +2,7 @@
FROM nginx:stable-alpine FROM nginx:stable-alpine
# 复制Nginx配置文件 # 复制Nginx配置文件
COPY nginx/nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf
# 暴露80端口 # 暴露80端口
EXPOSE 80 EXPOSE 80