fix: Do not auto-redirect OIDC if there is an error notice to display
closes #6565
This commit is contained in:
@@ -232,7 +232,8 @@ function Login({ children }: Props) {
|
|||||||
if (
|
if (
|
||||||
config.providers.length === 1 &&
|
config.providers.length === 1 &&
|
||||||
config.providers[0].id === "oidc" &&
|
config.providers[0].id === "oidc" &&
|
||||||
!env.OIDC_DISABLE_REDIRECT
|
!env.OIDC_DISABLE_REDIRECT &&
|
||||||
|
!query.get("notice")
|
||||||
) {
|
) {
|
||||||
window.location.href = getRedirectUrl(config.providers[0].authUrl);
|
window.location.href = getRedirectUrl(config.providers[0].authUrl);
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user