diff --git a/ayanova/src/api/gzapi.js b/ayanova/src/api/gzapi.js index a9fd5083..c789204d 100644 --- a/ayanova/src/api/gzapi.js +++ b/ayanova/src/api/gzapi.js @@ -54,7 +54,7 @@ function handleError(action, error, route, reject) { //reaction to directly entered or opened link, not application logic driving it, so home is safest choice // if (error.message && error.message.includes("NotAuthorized")) { - store.commit("logItem", "User is not authorized!"); + store.commit("logItem", "Not authorized, redirecting to HOME"); gzevent.$emit("popup-message", gzlocale.get("ErrorUserNotAuthorized")); router.push("/"); return reject("[ErrorUserNotAuthorized]"); @@ -62,7 +62,7 @@ function handleError(action, error, route, reject) { //Handle 401 not authenticated if (error.message && error.message.includes("NotAuthenticated")) { - store.commit("logItem", "User is not authenticated, redirecting to login"); + store.commit("logItem", "User is not authenticated, redirecting to LOGIN"); auth.logout(); router.push("/login"); return reject("[ErrorUserNotAuthenticated]");