管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-12-31 b5560a2a37bb5a406488d50170abc5309c2d4f5a
DataLoader/htmls/login.html
@@ -6,6 +6,9 @@
  <meta http-equiv="pragma" content="no-cache" />
  <meta http-equiv="cache-control" content="no-cache" />
  <meta http-equiv="expires" content="0" />
  <meta name="renderer" content="webkit|ie-comp|ie-stand" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8" />
  <script src="js/jquery.min.js"></script>
  <script src="js/rsa.min.js"></script>
</head>
@@ -103,6 +106,7 @@
          }
          alert("登录成功!");
          setLoginInfo(rs.result);
        },
        error: function (e) {
          isBusy = false;
@@ -137,7 +141,14 @@
      }
    }
    // 密码是否合规
    function setLoginInfo(rs) {
      try {
        ntst.setLogin(rs.createUser, rs.uname, rs.token);
      } catch (e) {
        //
      }
    }
    function isValid(pwd) {
      if (pwd) {
        var regex = new RegExp('^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$');