mirror of
https://github.com/outline/outline.git
synced 2026-11-25 07:04:37 +03:00
fix: Do not auto-redirect OIDC if there is an error notice to display
closes #6565
This commit is contained in:
1 parent
66be5b2463
commit
15046d00a5
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user