Skip to content

Commit

Permalink
Fix success_url_allowed_hosts set instantiation (ansible#15196)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Anstis <manstis@redhat.com>
  • Loading branch information
2 people authored and djyasin committed Nov 11, 2024
1 parent 0f8e3dd commit 3b0c83a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion awx/api/generics.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def post(self, request, *args, **kwargs):

class LoggedLogoutView(auth_views.LogoutView):

success_url_allowed_hosts = settings.LOGOUT_ALLOWED_HOSTS
success_url_allowed_hosts = set(settings.LOGOUT_ALLOWED_HOSTS.split(",")) if settings.LOGOUT_ALLOWED_HOSTS else set()

def dispatch(self, request, *args, **kwargs):
original_user = getattr(request, 'user', None)
Expand Down
2 changes: 1 addition & 1 deletion awx/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
MEDIA_URL = '/media/'

LOGIN_URL = '/api/login/'
LOGOUT_ALLOWED_HOSTS = []
LOGOUT_ALLOWED_HOSTS = None

# Absolute filesystem path to the directory to host projects (with playbooks).
# This directory should not be web-accessible.
Expand Down

0 comments on commit 3b0c83a

Please sign in to comment.