PageSourceSearch

https://www.cybersecurity-insiders.com/wp-content/themes/Newspaper…/ajax-custom-registration.js?ver=1790908511

js cybersecurity-insiders.com collected 2026-10-02 02:36:10 UTC 2,868 bytes, 69 lines download raw bytes

1(function ($) {
2
3    //First Step of Custom Registration
4    $("form#custom-registration-form").submit(function (e) {
5        e.preventDefault();
6        $("#message").html("");
7        $(".registration-loadmore-content").addClass("loading-contents");
8        var formData = new FormData(e.currentTarget);
9        formData.append('action', 'csi_custom_registration');
10        var message = $(".register-step-1 #message");
11        $.ajax({
12            url: newspaper_data.ajaxurl,
13            type: 'POST',
14            processData: false,
15            contentType: false,
16            data: formData,
17            success: function (response) {
18                console.log(response.data);
19                if (typeof response.success != 'undefined' && response.success == false) {      
20                    if (typeof response.data.error_message != 'undefined' && response.data.error_message) {
21                        $("#message").html(response.data.error_message);
22                    }
23                }
24                else {
25                    window.location.replace(response.data.redirect_url);
26                    userEmail = response.data.user_email;
27                    window.localStorage.setItem("user_email", userEmail);
28                }
29                $(".registration-loadmore-content").removeClass("loading-contents");
30
31            }
32        });
33        return false;
34    });
35
36    //store user email from the first step form in local storage and pass the value to the second step form hidden field
37    $('#user_email').val(window.localStorage.getItem("user_email"));
38    window.localStorage.clear();
39
40    //Second Step of Custom Registration
41    $("form#second-step-registration-form").submit(function (e) {
42        e.preventDefault();
43        $(".registration-loadmore-content").addClass("loading-contents");
44        //form processing
45        var formData = new FormData(e.currentTarget);
46        formData.append('action', 'csi_step_two_registration');
47        var message = $(".register-step-2 #message");
48        $.ajax({
49            url: newspaper_data.ajaxurl,
50            type: 'POST',
51            processData: false,
52            contentType: false,
53            data: formData,
54            success: function (response) {
55                if (typeof response.success != 'undefined' && response.success == false) {
56                    if (typeof response.data.error_message != 'undefined' && response.data.error_message) {
57                        message.html(response.data.error_message);
58                    }
59                } else {
60                    window.location.replace(response.data.redirect_url);
61                }
62                $(".registration-loadmore-content").removeClass("loading-contents");
63
64            }
65        });
66        return false;
67    });
68
69})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.