mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-03-03 00:32:08 +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" });
|
||||
|
||||
Reference in New Issue
Block a user