PageSourceSearch

https://cmaconsulting.com.au/wp-content/plugins/nice-login-registe…/js/ajax-authentication.js?ver=1.3.10

js cmaconsulting.com.au collected 2026-09-30 05:35:44 UTC 2,042 bytes, 79 lines download raw bytes

1jQuery(document).ready(function($){
2	
3
4	$(".widget_pw_login_widget").on("click", "input[type='submit']", function(){
5		
6			
7			var mainDiv = $(this).parents('.sp-main-div');
8			if (mainDiv.length > 0 && mainDiv.children('.is_ajax_authentication').length==1){
9				var hidden = mainDiv.children('.is_ajax_authentication');
10				if (hidden.attr('value')=='0'){
11					return true;
12				}
13			}
14			
15			var login_header = mainDiv.children('.sp-login-header');
16			
17			//ssl check
18			var force_ssl_login = mainDiv.find(".force_ssl_login");
19			if (force_ssl_login.length>0 && force_ssl_login.val()=='true' && document.location.protocol!='https:' ){
20				login_header.children(".sp-ssl-requires-msg").slideDown(100);
21				return false;
22			}
23			
24			var loadingDiv = mainDiv.children(".sp-loading-img");
25			loadingDiv.show();
26			mainDiv.children("div:not('.sp-loading-img')").css('opacity', '0.4');
27			var form = $(this).parents("form");
28
29			login_header.hide();
30			login_header.empty();
31			var serializedForm = form.serialize();
32			var redirect_exec = false;
33
34			$.post(ajax_object.ajax_url, serializedForm, function(data) {
35				
36				//nonce check
37				if (data=='-1'){
38					login_header.html("<div id='login_error'>"+pwLogWi_messages.ajax_request_fails+"</div>");
39					return;
40				}
41				
42				var JSon;
43				
44				try{
45					JSon = $.parseJSON(data);
46				}catch(e){
47					if (typeof data == 'string'){
48						login_header.html("<div id='login_error'>"+data+"</div>");
49					}else{
50						login_header.html("<div id='login_error'>"+pwLogWi_messages.ajax_unknown_error+"</div>");
51					}
52					return;
53				}
54				
55				
56				if (data=='0' || JSon.operation == 'redirect'){
57					redirect_exec = true;
58					//location.href = JSon.redirect_to;
59					location.reload(true);
60					
61				}else{
62					login_header.html(JSon.message);
63				}
64				
65				
66			}).always(function(){
67				if (!redirect_exec){
68					loadingDiv.hide();
69					login_header.slideDown(100);
70					mainDiv.children("div:not('.sp-loading-img')").css('opacity', '1');
71				}
72			});
73				
74			
75			return false;
76			
77		});
78
79});

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.