This commit is contained in:
@@ -33,7 +33,7 @@ function devShowUnknownError(error) {
|
||||
console.log(error);
|
||||
|
||||
gzevent.$emit(
|
||||
"popup-message",
|
||||
"notify-warning",
|
||||
"DEV ERROR gzapi::devShowUnknownError - unexpected error during api operation see console "
|
||||
);
|
||||
}
|
||||
@@ -55,7 +55,7 @@ function handleError(action, error, route, reject) {
|
||||
//
|
||||
if (error.message && error.message.includes("NotAuthorized")) {
|
||||
store.commit("logItem", "Not authorized, redirecting to HOME");
|
||||
gzevent.$emit("popup-message", gzlocale.get("ErrorUserNotAuthorized"));
|
||||
gzevent.$emit("notify-warning", gzlocale.get("ErrorUserNotAuthorized"));
|
||||
router.push("/");
|
||||
return reject("[ErrorUserNotAuthorized]");
|
||||
}
|
||||
@@ -63,6 +63,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");
|
||||
gzevent.$emit("notify-error", gzlocale.get("ErrorUserNotAuthenticated"));
|
||||
auth.logout();
|
||||
router.push("/login");
|
||||
return reject("[ErrorUserNotAuthenticated]");
|
||||
|
||||
Reference in New Issue
Block a user