diff --git a/b/customer/registerUser.dspy b/b/customer/registerUser.dspy index fb8581c..3a97735 100644 --- a/b/customer/registerUser.dspy +++ b/b/customer/registerUser.dspy @@ -26,8 +26,9 @@ async def registerUser(ns): ns['username'] = ns['mobile'] if ns.get('password'): - if len(ns.get('password')) < 6: - return {'status': False, 'msg': '密码必须6位数以上'} + # 至少8位,包含大小写字母、特殊字符、数字 + if len(ns.get('password')) < 8 or not re.search(r'[a-zA-Z]', ns.get('password')) or not re.search(r'[0-9]', ns.get('password')) or not re.search(r'[!@#$%^&*()_+{}|:"<>?]', ns.get('password')): + return {'status': False, 'msg': '密码至少8位,包含大小写字母、特殊字符、数字'} if not ns.get('codeid'): return {'status': False, 'msg': '验证码ID不能为空'} diff --git a/b/user/logintype.dspy b/b/user/logintype.dspy index 2e686b8..ec75082 100644 --- a/b/user/logintype.dspy +++ b/b/user/logintype.dspy @@ -140,7 +140,7 @@ async def logintype(ns): async with db.sqlorContext('kboss') as sor: domain_name = ns.get('domain_name') - if domain_name in ['www.opencomputing.cn', 'dev.opencomputing.cn', 'localhost:9527'] and ns.get('username') not in ['开元云(北京)科技有限公司', 'admin', 'kyy_root', 'kyy_kaiyuan', 'kyacloud', 'kyy_运营', 'kyy_销售', 'kyy_财务']: + if domain_name in ['www.opencomputing.cn', 'dev.opencomputing.cn', 'localhost:9527'] and ns.get('username') not in ['开元云(北京)科技有限公司', 'admin', 'kyy_root', 'kyy_kaiyuan', 'kyacloud', 'kyy_运营', 'kyy_销售', 'kyy_财务', '测试用户', 'kycloud']: # 登录失败次数限制 login_allowed = await check_login_allowed(ns.get('username')) diff --git a/f/web-kboss/src/views/homePage/components/topBox/index.vue b/f/web-kboss/src/views/homePage/components/topBox/index.vue index 0ab83fb..6a4af0d 100644 --- a/f/web-kboss/src/views/homePage/components/topBox/index.vue +++ b/f/web-kboss/src/views/homePage/components/topBox/index.vue @@ -22,6 +22,8 @@
+ +供需广场 @@ -374,7 +376,10 @@ export default Vue.extend({ } }, methods: { - + // 跳转元境 https://ai.opencomputing.cn/#/index + goYuanjing() { + window.open('https://ai.opencomputing.cn/#/index') + }, // 处理AI助手点击 handleAIClick() { this.aiDialogVisible = true @@ -1042,6 +1047,15 @@ export default Vue.extend({ padding-right: 40px; position: relative; + &.nav-hover { + cursor: pointer; + transition: all 0.3s; + + &:hover { + color: #1E6FFF; + } + } + a { text-decoration: none; font-size: 18px !important; diff --git a/f/web-kboss/src/views/product/allProduct/index.vue b/f/web-kboss/src/views/product/allProduct/index.vue index 0427ab8..220e37a 100644 --- a/f/web-kboss/src/views/product/allProduct/index.vue +++ b/f/web-kboss/src/views/product/allProduct/index.vue @@ -5,7 +5,7 @@