Skip to content

Instantly share code, notes, and snippets.

@zackham
Created December 30, 2011 23:42
Show Gist options
  • Save zackham/1542080 to your computer and use it in GitHub Desktop.
Save zackham/1542080 to your computer and use it in GitHub Desktop.
login: function() {
var email = $('.email').val(), password = $('.password').val();
rwgps.models.User.login(email, password)
.done(function(user) {
console.log('logged in as', user.get('email'));
})
.fail(function() {
console.log('invalid username or password, please try again');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment