jQuery(document).ready(function(t){"use strict";t("form#login").on("submit",function(e){t("form#login p.status").show().text(ajax_login_object.loadingmessage);var o=t("form#login #useername").val(),a=t("form#login #pasword").val();return""==o&&""==a?(t("form#login p.status").text("Please Enter User name & password"),setTimeout(function(){t("form#login p.status").fadeOut(500)},3e3),!1):""==o?(t("form#login p.status").text("Please Enter User name"),setTimeout(function(){t("form#login p.status").fadeOut(500)},3e3),!1):""==a?(t("form#login p.status").text("Please Enter password"),setTimeout(function(){t("form#login p.status").fadeOut(500)},3e3),!1):(t.ajax({type:"POST",dataType:"json",url:ajax_login_object.ajaxurl,data:{action:"ajaxlogin",username:t("form#login #useername").val(),password:t("form#login #pasword").val(),security:t("form#login #security").val()},success:function(e){t("form#login p.status").text(e.message),setTimeout(function(){t("form#login p.status").fadeOut(500)},3e3),!0===e.loggedin&&(document.location.href=ajax_login_object.redirecturl)}}),void e.preventDefault())})});