Commit 6cf5a346 by Matthew Mongeau

Got basic login working

parent ae67d361
......@@ -61,13 +61,8 @@ function postJSON(url, data, callback) {
});
}
$('form#login_form').submit(function(e) {
console.log("WOMBAT")
e.preventDefault();
var submit_data={};
$.each($("[id^=li_]"), function(index,value){
submit_data[value.name]=value.value;
});
submit_data["remember"] = ($('#remember').attr("checked")? true : false);
var submit_data = $('#login_form').serialize();
postJSON('/login',
submit_data,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment