Guest User

Untitled

a guest
Dec 5th, 2019
134
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const firstName = 'Flex';
  2. const lastName = 'Workshop';
  3. const email = 'flex@gmail.com';
  4. const password = 'password';
  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