1 line
280 B
JavaScript
1 line
280 B
JavaScript
|
$("#login-form").on("submit",(function(e){e.preventDefault();const form_data=new FormData(this);$("#login-error").hide(),$().ajax(`${base_url}/dashboard/login`,{type:"POST",data:form_data,success:resp=>{resp.ok?location.href=`${base_url}/dashboard`:$("#login-error").show()}})}));
|