Эх сурвалжийг харах

密码可选特殊符号修改

zhongxiaoyu 3 жил өмнө
parent
commit
9473de1670

+ 3 - 3
src/App.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2021-10-14 17:17:53
- * @LastEditTime: 2022-03-30 15:24:07
+ * @LastEditTime: 2022-04-06 17:53:21
  * @LastEditors: your name
  * @Description: In User Settings Edit
  * @FilePath: \Foshan4A\src\App.vue
@@ -159,8 +159,8 @@ export default {
       if (oldViews) {
         this.handleInit();
       }
-      wsSocketClose()
-      wsSocket()
+      // wsSocketClose()
+      // wsSocket()
     },
     /**
      * @description: 定时器方法

+ 3 - 3
src/layout/index.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: your name
  * @Date: 2021-11-24 14:53:03
- * @LastEditTime: 2022-01-10 16:56:14
- * @LastEditors: Please set LastEditors
+ * @LastEditTime: 2022-04-06 18:03:49
+ * @LastEditors: your name
  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  * @FilePath: \Foshan4A2.0\src\layout\index.vue
 -->
@@ -19,7 +19,7 @@
         <div class="message">
           <div class="m1"><span class="el-icon-s-opportunity mg"></span>密码长度:{{PwdLengthBegin}}-{{PwdLengthEnd}}位字符</div>
           <div class="m2">密码规则:必须包含{{PwdMessage}}</div>
-          <div class="m2">特殊字符:!、%、&、,、;、=、?、$、@、#、$、*、'</div>
+          <div class="m2">特殊字符:`、~、!、@、#、$、%、^、&、*、(、)、-、_、=、+、[、{、]、}、\、|、;、:、'、"、,、<、.、>、/、?</div>
         </div>
         <div class="content">
           <el-form :model="dataForm" :rules="dataRules" ref="dataForm" class="demo-dataForm">

+ 2 - 2
src/utils/validate.js

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-12-13 09:43:22
- * @LastEditTime: 2022-03-31 15:20:40
+ * @LastEditTime: 2022-04-06 17:43:49
  * @LastEditors: your name
  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  * @FilePath: \Foshan4A2.0\src\utils\validate.js
@@ -135,7 +135,7 @@ export function pwdProduce(minLen, maxLen, struc) {
   // 字母
   const alphabet = 'abcdefghijklmnopqrstuvwxyz'
   // 特殊字符
-  const special = ['!', '%', '&', ',', ';', '=', '?', '$', '@', '#', '$', '*', "'"]
+  const special = ['`', '~', '!',  '@', '#', '$', '%', '^', '&', '*', '(', ')', '-', '_', '+', '=', '[', '{', ']', '}', '\\', '|', ';', ':', "'", '"', ',', '<', '.', '>', '/', '?']
   //数字
   const numbers = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
   // 密码随机长度

+ 1 - 1
src/views/login/index.vue

@@ -167,7 +167,7 @@ export default {
                       this.$store.dispatch('user/setPowerList', []);
                       this.$router.push('/');
                     }
-                    wsSocket();
+                    // wsSocket();
                   } else {
                     this.loading = false;
                     this.$store.dispatch("user/logout");

+ 1 - 1
src/views/noPower/index.vue

@@ -14,7 +14,7 @@
         <div class="message">
           <div class="m1"><span class="el-icon-s-opportunity mg"></span>密码长度:{{PwdLengthBegin}}-{{PwdLengthEnd}}位字符</div>
           <div class="m2">密码规则:必须包含{{PwdMessage}}</div>
-          <div class="m2">特殊字符:!、%、&、,、;、=、?、$、@、#、$、*、'</div>
+          <div class="m2">特殊字符:`、~、!、@、#、$、%、^、&、*、(、)、-、_、=、+、[、{、]、}、\、|、;、:、'、"、,、<、.、>、/、?</div>
         </div>
         <div class="content">
           <el-form :model="dataForm" :rules="dataRules" ref="dataForm" class="demo-dataForm">