Commit f93e23a71136461bdc4504c77b80e978e982fc50

  • avatar
  • arvind
  • Thu Jun 27 18:21:36 IST 2013
authenticate url is a parameter, more flexibility
  • Diff rendering mode:
  • inline
  • side by side

static/sweet-authenticate.js

1var sweet = {1var 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
5 return true;5 return true;
6 });6 });