Explorar el Código

history filer done

ming hace 3 años
padre
commit
3fc747acb1
Se han modificado 2 ficheros con 1 adiciones y 5 borrados
  1. 0 1
      api/static/script_util.js
  2. 1 4
      api/templates/script_index.js

+ 0 - 1
api/static/script_util.js

@@ -143,7 +143,6 @@ $(".gen_avatar").click(function () {
       console.error(error)
     }
   });
-
 });
 
 var loaded_data = ''

+ 1 - 4
api/templates/script_index.js

@@ -15,9 +15,6 @@ $("#btn_login").click(function () {
       window.location.replace("/index")
     }
   };
-  var data = "grant_type=&username=" + $('#username').val() + "&password=qwe&scope=&client_id=&client_secret=";
+  var data = "grant_type=&username=" + $('#username').val() + "&password="+$('#password').val()+"&scope=&client_id=&client_secret=";
   xhr.send(data);
 });
-
-
-