mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Update django is_safe_url calls to new API (#2546)
This commit is contained in:
committed by
Jeremy Stretch
parent
66ef5c726c
commit
319869c22e
@@ -36,7 +36,7 @@ class LoginView(View):
|
||||
|
||||
# Determine where to direct user after successful login
|
||||
redirect_to = request.POST.get('next', '')
|
||||
if not is_safe_url(url=redirect_to, host=request.get_host()):
|
||||
if not is_safe_url(url=redirect_to, allowed_hosts=request.get_host()):
|
||||
redirect_to = reverse('home')
|
||||
|
||||
# Authenticate user
|
||||
|
Reference in New Issue
Block a user