| | |
| | | <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> |
| | | |
| | |
| | | alert("验证码输入有误!"); |
| | | createCode(); |
| | | } |
| | | else |
| | | { |
| | | alert("验证码正确!"); |
| | | } |
| | | //else |
| | | //{ |
| | | // alert("验证码正确!"); |
| | | //} |
| | | } |
| | | </script> |
| | | </head> |
| | |
| | | <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" |
| | |
| | | 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; |