mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 21:57:47 +02:00
Use and handle default Laravel validation errors response
This commit is contained in:
@ -61,7 +61,7 @@
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
if( error.response.data.errors ) {
|
||||
if( error.response.status == 422 ) {
|
||||
this.validationErrors = error.response.data.errors
|
||||
}
|
||||
else if( error.response.data.requestFailed ) {
|
||||
|
Reference in New Issue
Block a user