diff --git a/src/boot/axios.js b/src/boot/axios.js index bda3ec7..3d72b16 100644 --- a/src/boot/axios.js +++ b/src/boot/axios.js @@ -42,7 +42,9 @@ export default function ({ router, store }) { if (!error.response) { text = error.message } - + else if (error.config.url === "/checkcreds/") { + text = "Bad credentials" + } // unauthorized else if (error.response.status === 401) { router.push({ path: "/expired" }); diff --git a/src/views/Login.vue b/src/views/Login.vue index 05d06ec..88cb96c 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -95,7 +95,7 @@ export default { onSubmit() { this.$store .dispatch("retrieveToken", this.credentials) - .then(response => { + .then(() => { this.credentials = {}; this.$router.push({ name: "Dashboard" }); })