Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Created October 31, 2012 15:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfjedimaster/3987875 to your computer and use it in GitHub Desktop.
Save cfjedimaster/3987875 to your computer and use it in GitHub Desktop.
$(document).on("touchend","#resetForm", function(e) {
e.preventDefault();
var email = $("#passwordResetEmail").val();
if(email === "") return;
Parse.User.requestPasswordReset(email, {
success:function() {
alert("Reset instructions emailed to you.");
},
error:function(error) {
alert(error.message);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment