Browse Source

注释 login.html 中 captcha 相关代码

reghao 2 năm trước cách đây
mục cha
commit
c5ead3af9a
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      manager/src/main/resources/templates/login.html

+ 3 - 3
manager/src/main/resources/templates/login.html

@@ -40,7 +40,7 @@
 <script th:replace="/common/template :: script"></script>
 <script th:src="@{/js/login.js}" charset="utf-8"></script>
 <script type="text/javascript">
-    function getCaptcha(){
+    /*function getCaptcha(){
         var captchaImg = document.getElementById("captchaImg");
         $.get('/api/account/code/captcha', function (json) {
             if (json.code === 0) {
@@ -50,13 +50,13 @@
                 });
             }
         })
-    }
+    }*/
     function getPubkey(){
         $.get('/api/account/code/pubkey', function (json) {
             if (json.code === 0) {
                 localStorage.setItem("pubkey", json.data.pubkey)
                 localStorage.setItem("pubkeyR", json.data.r)
-                getCaptcha()
+                //getCaptcha()
             } else {
                 layer.alert(json.msg, function(){
                 });