419 error control
This commit is contained in:
parent
53292a463e
commit
2cf73de59f
5
resources/assets/js/plugins/form.js
vendored
5
resources/assets/js/plugins/form.js
vendored
@ -493,6 +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) {
|
||||||
|
window.location.href = '';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof this.errors != "undefined") {
|
if (typeof this.errors != "undefined") {
|
||||||
this.errors.record(error.response.data.errors);
|
this.errors.record(error.response.data.errors);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user