diff --git a/app/views/wechats/login.html.erb b/app/views/wechats/login.html.erb index 32b70d1e2..284f19558 100644 --- a/app/views/wechats/login.html.erb +++ b/app/views/wechats/login.html.erb @@ -13,7 +13,7 @@ $("#submitForm").click(function(){ $.ajax({ type: "POST", - url: $(this).parent("form").attr("action") + "?&authenticity_token=" + <%=form_authenticity_token%>, + url: $(this).parent("form").attr("action") + "?&authenticity_token=" + "<%=form_authenticity_token%>", data:$(this).parent("form").serialize(), dataType: "json" });