attempt to fix login issue

sync_v2
Laurent 8 months ago
parent 6c9bc3c7f0
commit f84c8ed930
  1. 3
      authentication/views.py

@ -4,6 +4,7 @@ from django.contrib.auth import authenticate
from django.utils.decorators import method_decorator
from django.core.exceptions import ObjectDoesNotExist
from django.conf import settings
from django.contrib.auth import get_user_model
from rest_framework.views import APIView
from rest_framework.response import Response
@ -17,7 +18,7 @@ from .models import Device, LoginLog
from .serializers import ChangePasswordSerializer
CustomUser=settings.AUTH_USER_MODEL
CustomUser=get_user_model()
@method_decorator(csrf_exempt, name='dispatch')
class CustomAuthToken(APIView):

Loading…
Cancel
Save