Commit f93e23a71136461bdc4504c77b80e978e982fc50

  • avatar
  • arvind
  • Thu Jun 27 18:21:36 IST 2013
authenticate url is a parameter, more flexibility
  
11var sweet = {
2 authenticate: function(user, hash){
3 $.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){
44
55 return true;
66 });