Commit f93e23a71136461bdc4504c77b80e978e982fc50
authenticate url is a parameter, more flexibility
| | | | 1 | var sweet = { | 1 | var sweet = { |
---|
2 | authenticate: function(user, hash){ | | authenticate: function(user, hash){ |
---|
3 | $.post("http://localhost:5001/authenticate",{"user":user, "hash":hash}, function(data){ | | $.post("http://localhost:5001/authenticate",{"user":user, "hash":hash}, function(data){ |
---|
| | 2 | authenticate: function(url,user, hash){ | | | 3 | $.post(url,{"user":user, "hash":hash}, function(data){ |
---|
4 | | 4 | |
---|
5 | return true; | 5 | return true; |
---|
6 | }); | 6 | }); |
---|