Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): Add react_config context on auth pages #82396

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/sentry/web/frontend/auth_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
from sentry.utils.http import absolute_uri
from sentry.utils.sdk import capture_exception
from sentry.utils.urls import add_params_to_url
from sentry.web.client_config import get_client_config
from sentry.web.forms.accounts import AuthenticationForm, RegistrationForm
from sentry.web.frontend.base import BaseView, control_silo_view

Expand Down Expand Up @@ -531,6 +532,7 @@ def get_default_context(self, request: Request, **kwargs) -> dict:
), # NOTE: not utilized in basic login page (only org login)
"register_form": None,
"CAN_REGISTER": False,
"react_config": get_client_config(request, self.active_organization),
"join_request_link": self.get_join_request_link(
organization=organization, request=request
), # NOTE: not utilized in basic login page (only org login)
Expand Down
Loading