error request controlled
This commit is contained in:
parent
6cdaadfa92
commit
fe72409b11
8
resources/assets/js/plugins/form.js
vendored
8
resources/assets/js/plugins/form.js
vendored
@ -493,9 +493,11 @@ export default class Form {
|
|||||||
|
|
||||||
// Form fields check validation issue
|
// Form fields check validation issue
|
||||||
onFail(error) {
|
onFail(error) {
|
||||||
if (error.request.status == 419) {
|
if (error.request) {
|
||||||
window.location.href = '';
|
if (error.request.status == 419) {
|
||||||
return;
|
window.location.href = '';
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof this.errors != "undefined") {
|
if (typeof this.errors != "undefined") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user