Commits

Chun-Ping Chang  committed ed27fda

change "userhash" -> "username"

  • Participants
  • Parent commits 6442a3b
  • Branches production

Comments (0)

Files changed (1)

File assets/js/custom/signin.min.js

-$(document).ready(function(){$("#btnLogin").click(function(){var a=$("#txtUserID").val(),b=$("#txtUserPW").val();$.ajax({type:"POST",url:"/auth",dataType:"json",cache:!1,data:{userhash:a,passwd:b},error:function(){alert("Login failed")},success:function(a){"OK"===a[0]?window.location="/manage":alert("Login failed")}})});$("input:text").bind("keypress",function(a){13==a.keyCode&&$("#btnLogin").click()});$("input:password").bind("keypress",function(a){13==a.keyCode&&$("#btnLogin").click()})});
+$(document).ready(function(){$("#btnLogin").click(function(){var a=$("#txtUserID").val(),b=$("#txtUserPW").val();$.ajax({type:"POST",url:"/auth",dataType:"json",cache:!1,data:{username:a,passwd:b},error:function(){alert("Login failed")},success:function(a){"OK"===a[0]?window.location="/manage":alert("Login failed")}})});$("input:text").bind("keypress",function(a){13==a.keyCode&&$("#btnLogin").click()});$("input:password").bind("keypress",function(a){13==a.keyCode&&$("#btnLogin").click()})});