Created
June 21, 2017 16:21
-
-
Save brandonmwest/46c39fd86d21c93110be5ecb520ac8de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
//callback we must supply to the widget to interact with our server-side code | |
//must take 3 parameters: email, fingerprint, and app_code | |
//must return a jQuery POST request object | |
var callback = function(email, fingerprint, kickbox_app_code){ | |
return $.post( "/authenticate", { | |
email: email, | |
fingerprint: fingerprint, | |
kickbox_app_code: kickbox_app_code, | |
dataType: "json", | |
}); | |
} | |
$('.kickbox-form'){ authenticate: callback }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment