mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-02-16 09:10:21 +00:00
fix cors exception msg
This commit is contained in:
@@ -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" });
|
||||
|
||||
@@ -95,7 +95,7 @@ export default {
|
||||
onSubmit() {
|
||||
this.$store
|
||||
.dispatch("retrieveToken", this.credentials)
|
||||
.then(response => {
|
||||
.then(() => {
|
||||
this.credentials = {};
|
||||
this.$router.push({ name: "Dashboard" });
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user