Skip to content

Instantly share code, notes, and snippets.

@zackham
Created December 31, 2011 18:04
Show Gist options
  • Save zackham/1544778 to your computer and use it in GitHub Desktop.
Save zackham/1544778 to your computer and use it in GitHub Desktop.
rwgps.models.User.login(email, password)
.done(function(user) {
$('.logged_in').show().html(T.t('logged_in_as') + ' ' + user.get('email'));
$('.login_form').hide();
$('.route_save_details').show();
})
.fail(function() {
$('.incorrect_password_message').show();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment