Please, check django.contrib.auth views and decorators.
IMHO we should include
@method_decorator(sensitive_post_parameters())
@method_decorator(csrf_protect)
@method_decorator(never_cache)
decorators and do some additional checks for next url using url_has_allowed_host_and_scheme.
Please, check django.contrib.auth views and decorators.
IMHO we should include
decorators and do some additional checks for
nexturl usingurl_has_allowed_host_and_scheme.