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