This commit is contained in:
2019-04-30 22:34:58 +00:00
parent 1cb3d082ff
commit fd26ecbf88

View File

@@ -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]");