mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-01 08:05:23 +00:00
feat: drop the 2.8 columns, moves and aliases kept for a downgrade
This commit is contained in:
1 parent
d3d8269cb7
commit
61f46d2517
196 files changed
+29909
-10511
No files matched your search
@@ -420,7 +420,7 @@ export function Auth({ onLogin }: AuthProps) {
|
||||
);
|
||||
return;
|
||||
}
|
||||
toast.error(event.data.error || t("errors.failedOidcLogin"));
|
||||
toast.error(event.data.error || t("errors.failedExternalLogin"));
|
||||
};
|
||||
|
||||
window.addEventListener("message", handleExternalBrowserResult);
|
||||
@@ -604,7 +604,7 @@ export function Auth({ onLogin }: AuthProps) {
|
||||
toast.error(t("messages.userNotAllowed"));
|
||||
else if (error === "second_factor_unavailable")
|
||||
toast.error(t("auth.secondFactorUnavailable"));
|
||||
else toast.error(`${t("errors.oidcAuthFailed")}: ${error}`);
|
||||
else toast.error(`${t("errors.externalAuthFailed")}: ${error}`);
|
||||
window.history.replaceState({}, document.title, window.location.pathname);
|
||||
return;
|
||||
}
|
||||
@@ -1047,7 +1047,7 @@ export function Auth({ onLogin }: AuthProps) {
|
||||
throw new Error(t("errors.invalidAuthUrl"));
|
||||
window.location.replace(authUrl);
|
||||
} catch (err: unknown) {
|
||||
showLoginError(err, "errors.failedOidcLogin");
|
||||
showLoginError(err, "errors.failedExternalLogin");
|
||||
setLoading(false);
|
||||
}
|
||||
},
|
||||
@@ -1133,7 +1133,7 @@ export function Auth({ onLogin }: AuthProps) {
|
||||
}
|
||||
|
||||
if (urlTriggered) {
|
||||
toast.info(t("errors.silentSigninOidcUnavailable"));
|
||||
toast.info(t("errors.silentSigninExternalUnavailable"));
|
||||
}
|
||||
}, [startRedirect, authMethodsLoaded, externalMethods, t]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user