Compare commits
8 Commits
1021a2d6be
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c0810e4352 | ||
![]() |
53668b12e9 | ||
![]() |
e6f36da184 | ||
![]() |
22ed9ab4d7 | ||
![]() |
37b43ef8f5 | ||
![]() |
5421b81828 | ||
![]() |
20283e17b9 | ||
![]() |
539c9c7453 |
@@ -82,6 +82,9 @@ const handleConfirm = async () => {
|
||||
if (!createData.password) {
|
||||
throw new Error('密码不能为空')
|
||||
}
|
||||
if (!/^\d{6,}$/.test(createData.password)) {
|
||||
throw new Error('密码必须为6位或以上的数字')
|
||||
}
|
||||
await userService.createUser({
|
||||
username: createData.username,
|
||||
password: createData.password,
|
||||
|
@@ -2,7 +2,7 @@
|
||||
FROM nginx:stable-alpine
|
||||
|
||||
# 复制Nginx配置文件
|
||||
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# 暴露80端口
|
||||
EXPOSE 80
|
||||
|
Reference in New Issue
Block a user