fix: Do not auto-redirect OIDC if there is an error notice to display

closes #6565
This commit is contained in:
Tom Moor
2024-02-20 21:58:18 -05:00
parent 66be5b2463
commit 15046d00a5

View File

@@ -232,7 +232,8 @@ function Login({ children }: Props) {
if (
config.providers.length === 1 &&
config.providers[0].id === "oidc" &&
!env.OIDC_DISABLE_REDIRECT
!env.OIDC_DISABLE_REDIRECT &&
!query.get("notice")
) {
window.location.href = getRedirectUrl(config.providers[0].authUrl);
return null;