$(document).ready(function(){$(".form-signin").submit(function(o){var t={username:$("#inputEmail").val(),password:$("#inputPassword").val(),csrf_token:$("#csrf_token").val()};$.ajax({type:"POST",url:'/?action=login.authenticate',data:t,dataType:"json",encode:!0}).done(function(o){"error"==o.type?toastr.error(o.toast):window.location.href=o.lastpage}).fail(function(o){console.log(o)}),o.preventDefault()})});