HI, i want to display a custom specified error message if the user entered an incorrect user or Password, the error message should be specific instead of 'Sorry, looks like there are some errors detected, please try again.'
i'm using Metronic Starter kit in laravel 10
Get ready for thrilling quad bike experiences with Self Drive Adventures! Take control as you explore Dubai's stunning desert landscape on powerful quad bikes, enjoying the freedom of the open sands and the excitement of off-road riding. Book now for an unforgettable adventure!
Hi,
Sorry to hear about the inconvenience. We'll make sure to address this in an upcoming update. In the meantime, you can customize the error message by modifying the JavaScript file responsible for handling the error.
You can find the code snippet below. After making the changes, remember to run npm run dev to rebuild the assets.
catch(function (error) {
if (error.response.status != 200) {
Swal.fire({
text: error.response.data.message,
icon: "error",
buttonsStyling: false,
confirmButtonText: "Ok, got it!",
customClass: {
confirmButton: "btn btn-primary"
}
});
return;
}
})
okay Thanks