Merge pull request #2846 from brkcvn/master

419 error controlled
This commit is contained in:
Burak Civan 2022-12-21 16:44:00 +03:00 committed by GitHub
commit 1b764f93c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -493,6 +493,11 @@ export default class Form {
// Form fields check validation issue
onFail(error) {
if (error.request.status == 419) {
window.location.href = '';
return;
}
if (typeof this.errors != "undefined") {
this.errors.record(error.response.data.errors);
}