mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-26 15:17:45 -06:00
Update django is_safe_url calls to new API (#2546)
This commit is contained in:
committed by
Jeremy Stretch
parent
7c551445b3
commit
2a929fc19a
@@ -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