hassan11196 / QRSMS-V1

Consider using in PYL-R1714
Performance
Major
1 occurrence in this check
Consider merging these comparisons with "in" to "'' in (username, password)"
474    def post(self, request, *args, **kwargs):
475        username = request.POST['username']
476        password = request.POST['password']
477        if username == "" or password == "":478            return Response(data="Empty Usename or Password Field.", status=400)
479
480        user = authenticate(request, username=username, password=password)