From a666b5f9741ef9b21f547d3b2141752a0383c70c Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 20 九月 2022 17:07:38 +0800 Subject: [PATCH] 1、修改登录页面 2、修改阿里代码规范问题 --- src/resources/templates/casLoginView.html | 56 +++++++++++++++++++++++++++++++------------------------- 1 files changed, 31 insertions(+), 25 deletions(-) diff --git a/src/resources/templates/casLoginView.html b/src/resources/templates/casLoginView.html index f1805ab..6b3fb18 100644 --- a/src/resources/templates/casLoginView.html +++ b/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> @@ -96,10 +97,10 @@ alert("楠岃瘉鐮佽緭鍏ユ湁璇紒"); createCode(); } - else - { - alert("楠岃瘉鐮佹纭紒"); - } + //else + //{ + // alert("楠岃瘉鐮佹纭紒"); + //} } </script> </head> @@ -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" @@ -463,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; -- Gitblit v1.9.3