jQuery(document).ready(function(a){a("form#login_form").on("submit",function(o){a("form#login_form span.status").removeClass(function(o,a){return(a.match(/(^|\s)alert-\S+/g)||[]).join(" ")}),a("form#login_form span.status").show().text(ajax_login_object.loadingmessage).addClass(ajax_login_object.class),a.ajax({type:"POST",dataType:"json",url:ajax_login_object.ajaxurl,data:{action:"ajaxlogin",username:a("form#login_form #username").val(),password:a("form#login_form #password").val(),security:a("form#login_form #security").val(),"g-recaptcha-response":a("form#login_form .g-recaptcha-response").val()},success:function(o){a("form#login_form span.status").removeClass(function(o,a){return(a.match(/(^|\s)alert-\S+/g)||[]).join(" ")}),a("form#login_form span.status").text(o.message).addClass(o.class),1==o.loggedin?document.location.href=ajax_login_object.redirecturl:a("form#login_form .g-recaptcha-response")[0]&&grecaptcha.reset()}}),o.preventDefault()})});