SHARE
TWEET

Untitled

a guest Dec 5th, 2019 126 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const firstName = 'Nanek';
  2. const lastName = 'Jay';
  3. const email = 'nanthejay@gmail.com';
  4. const password = 'justAPassword';
  5. var data = "form_type=create_customer&utf8=%E2%9C%93&customer%5Bfirst_name%5D=" + firstName + "&customer%5Blast_name%5D=" + lastName + "&customer%5Bemail%5D=" + email + "&customer%5Bpassword%5D=" + password;
  6. jQuery.post('/account', data).done(function (response) {
  7.     var logErrors = jQuery(response).find('.errors').text();
  8.     if (logErrors != '' && logErrors != 'undefined') {
  9.         alert(logErrors);
  10.     }
  11.     else {
  12.         alert('Account created!');
  13.     }
  14. }).fail(function () {
  15.     alert('Failed to create account! Please try different details or activate a VPN!');
  16. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top