mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-14 07:48:37 +02:00
Better errors handling from vuejs side
This commit is contained in:
@ -165,7 +165,7 @@
|
||||
this.ShowTwofaccountInModal = true;
|
||||
}
|
||||
catch (error) {
|
||||
this.$router.push({ name: 'genericError', params: { err: error.response.data.message } });
|
||||
//this.$router.push({ name: 'genericError', params: { err: error.response } });
|
||||
}
|
||||
},
|
||||
|
||||
@ -194,7 +194,7 @@
|
||||
this.$router.go('/login');
|
||||
}
|
||||
catch (error) {
|
||||
this.$router.push({ name: 'genericError', params: { err: error.response.data.message } });
|
||||
this.$router.push({ name: 'genericError', params: { err: error.response } });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user