Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const firstName = 'Nanek';
- const lastName = 'Jay';
- const email = 'nanthejay@gmail.com';
- const password = 'justAPassword';
- 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;
- jQuery.post('/account', data).done(function (response) {
- var logErrors = jQuery(response).find('.errors').text();
- if (logErrors != '' && logErrors != 'undefined') {
- alert(logErrors);
- }
- else {
- alert('Account created!');
- }
- }).fail(function () {
- alert('Failed to create account! Please try different details or activate a VPN!');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement