13693261870
2022-09-20 a666b5f9741ef9b21f547d3b2141752a0383c70c
src/resources/templates/casLoginView.html
@@ -15,6 +15,7 @@
  <script type="text/javascript" src="download-jquery/zxcvbn.js"></script>
  <script type="text/javascript" src="download-jquery/jquery-ui.min.js"></script>
  <script type="text/javascript" src="download-jquery/jquery.cookie.min.js"></script>
  <script type="text/javascript" src="download-jquery/rsa.min.js"></script>
  <script src="download-jquery/api.js" async defer th:if="${recaptchaSiteKey}"></script>
  <script src="download-jquery/bootstrap.min.js"></script>
@@ -85,22 +86,22 @@
      }
    }
    //2019-03-28 去掉 by XiaoQi
    //function validateCode() {
    //var inputCode = document.getElementById("inputCode").value;
    //if (inputCode.length <= 0)
    //{
    //alert("请输入验证码!");
    //}
    //else if (inputCode.toUpperCase() != code.toUpperCase())
    //{
    //alert("验证码输入有误!");
    //createCode();
    //}
    //else
    //{
    //alert("验证码正确!");
    //}
    //}
    function validateCode() {
      var inputCode = document.getElementById("inputCode").value;
      if (inputCode.length <= 0)
      {
        alert("请输入验证码!");
      }
      else if (inputCode.toUpperCase() != code.toUpperCase())
      {
        alert("验证码输入有误!");
        createCode();
      }
      //else
      //{
      //  alert("验证码正确!");
      //}
    }
  </script>
</head>
<body style="background-color: #0059cf; overflow-y: hidden !important;">
@@ -122,34 +123,34 @@
        <div th:if="${#fields.hasErrors('*')}" style="margin-left: 35px;">
          <span th:each="err : ${#fields.errors('*')}" th:utext="${err}" style="color: red;" />
        </div>
        <div th:if="${openIdLocalId}">
          <strong><span th:utext="${openIdLocalId}" />
          </strong>
        <!--<div th:if="${openIdLocalId}">
          <strong><span th:utext="${openIdLocalId}" /></strong>
          <input type="hidden" id="username" name="username" th:value="${openIdLocalId}" />
        </div>
        </div>-->
        <div th:unless="${openIdLocalId}" class="loginid" style='width: 400px; margin-right: 50px; margin-top: 45px; border-bottom: 1px solid #fff;'>
          <label for="username"></label>
          <input class="required" id="Text1" placeholder="请输入用户名" size="25" tabindex="1"
            type="text" th:field="*{username}"
          <input class="required" id="username" placeholder="请输入用户名" size="25" tabindex="1" type="text"
            th:accesskey="#{screen.welcome.label.netid.accesskey}"
            autocomplete="off" />
          <input type="hidden" id="uName" name="username" value="" />
        </div>
        <!-- 密码 -->
        <section>
               <div class="loginpwd" style='width:400px;margin-right:20px;margin-top:30px;border-bottom:1px solid #fff;' >
                  <label for="password"></label>
                  <input class="required" placeholder="请输入密码" type="password" id="password" size="25"
                     tabindex="2"
                     th:accesskey="#{screen.welcome.label.password.accesskey}"
                     th:field="*{password}" autocomplete="off" />
                  <span id="capslock-on" style="display: none;">
                     <p>
                     <i class="fa fa-exclamation-circle"></i>
                     <span th:utext="#{screen.capslock.on}" />
                     </p>
                  </span>
               </div>
            </section>
         <div class="loginpwd" style='width:400px;margin-right:20px;margin-top:30px;border-bottom:1px solid #fff;' >
            <label for="password"></label>
            <input class="required" placeholder="请输入密码" type="password" id="password" size="25"
               tabindex="2"
               th:accesskey="#{screen.welcome.label.password.accesskey}"
               autocomplete="off" />
            <span id="capslock-on" style="display: none;">
               <p>
               <i class="fa fa-exclamation-circle"></i>
               <span th:utext="#{screen.capslock.on}" />
               </p>
            </span>
                <input type="hidden" id="uPwd" name="password" value="" />
         </div>
      </section>
        <section class="row check">
               <p th:if="${rememberMeAuthenticationEnabled}">
                  <input type="checkbox" name="rememberMe" id="rememberMe"
@@ -178,7 +179,7 @@
            <span class="code" id="checkCode" onclick="createCode()" ></span>
            </div>
        </section>
        <section id="carLink" style="display:none;">
        <!--<section id="carLink" style="display:none;">
        <div style="background: url(images/NewGJXJlogin/1920/add.png) no-repeat;width: 400px;height: 40px;line-height: 40px;background-position: 3% 50%;margin-top: 30px;">
           <a style='color: #fff;font-size: 18px;margin-left: 52px;' href="downloads/证书安装与添加信任站点.zip" download="证书安装与添加信任站点.zip">证书安装与添加信任站点</a>
        </div>
@@ -188,7 +189,7 @@
        <div style="background: url(images/NewGJXJlogin/1920/add.png) no-repeat;width: 400px;height: 40px;line-height: 40px;background-position: 3% 50%;margin-top: 0px;">
           <a style='color: #fff;font-size: 18px;margin-left: 52px;' href="downloads/使用帮助文档.zip" download="使用帮助文档.zip">使用帮助文档</a>
        </div>
     </section>
     </section>-->
        <!-- 登录按钮 -->
        <section>
               <input type="hidden" name="execution" th:value="${flowExecutionKey}" />
@@ -207,7 +208,6 @@
    </div>
    <div id='div_foot' style="display: none;">
      <span>技术支持:国家海洋信息中心</span>
      <!-- <span style='margin-left:20px;'>广东蓝图信息技术有限公司</span> -->
    </div>
  </form>
  <form th:if="${passwordManagementEnabled}" method="post" id="misagh">
@@ -464,7 +464,12 @@
        createCode();
        return false;
      }
      //$("#uName").val(encrypt.encrypt(theUsername));
      //$("#uPwd").val(encrypt.encrypt(thePassword));
      $("#uName").val(Base64.encode(theUsername));
      $("#uPwd").val(Base64.encode(thePassword));
      $(":submit").attr("disabled", true);
      $(":submit").attr("value", i);
      return true;