clean
This commit is contained in:
parent
9aa724e19e
commit
36d97eb58c
@ -14,7 +14,6 @@ class LoginView(APIView):
|
|||||||
|
|
||||||
def post(self, request: HttpRequest):
|
def post(self, request: HttpRequest):
|
||||||
data = request.data
|
data = request.data
|
||||||
print(data)
|
|
||||||
serializer = LoginSerializer(data=data)
|
serializer = LoginSerializer(data=data)
|
||||||
serializer.is_valid(raise_exception=True)
|
serializer.is_valid(raise_exception=True)
|
||||||
user = serializer.get_user(data)
|
user = serializer.get_user(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user