From f93e23a71136461bdc4504c77b80e978e982fc50 Mon Sep 17 00:00:00 2001 From: Arvind Khadri Date: Thu, 27 Jun 2013 18:21:36 +0530 Subject: [PATCH] authenticate url is a parameter, more flexibility --- static/sweet-authenticate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/sweet-authenticate.js b/static/sweet-authenticate.js index 61ca093..0f36a84 100644 --- a/static/sweet-authenticate.js +++ b/static/sweet-authenticate.js @@ -1,6 +1,6 @@ var sweet = { - authenticate: function(user, hash){ - $.post("http://localhost:5001/authenticate",{"user":user, "hash":hash}, function(data){ + authenticate: function(url,user, hash){ + $.post(url,{"user":user, "hash":hash}, function(data){ return true; }); -- 1.7.10.4