'Handler for the POST method to this view.'

@method_decorator(csrf_exempt)
def post(self, request):

    if (not hasattr(request.user, 'backend')):
        request.user.backend = self._get_path_of_arbitrary_backend_for_user(request.user)
    login(request, request.user)
    return HttpResponse(status=204)
