Skip to content

Instantly share code, notes, and snippets.

@samchrisinger
Created November 12, 2013 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samchrisinger/7436061 to your computer and use it in GitHub Desktop.
Save samchrisinger/7436061 to your computer and use it in GitHub Desktop.
using HTTPS with jQuery for mobile login
$('#loginsubmit').on('click', function(){
$.post('https://pegasus.cs.virginia.edu/rcs/tokens.json',
{email: $('#email').val(),
password: $('#password').val()},
function(res){
console.log(res.token);
}).error(function(err){
console.log(err);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment