diff --git a/osinaweb/osinacore/api/views.py b/osinaweb/osinacore/api/views.py index 38f86c93..90bd9800 100644 --- a/osinaweb/osinacore/api/views.py +++ b/osinaweb/osinacore/api/views.py @@ -32,7 +32,7 @@ def authenticate_customer(request): if request.method == 'POST': email = request.POST.get('email') password = request.POST.get('password') - user = authenticate(request, email=email, password=password) + user = authenticate(request, username=email, password=password) if user is not None: login(request, user) return JsonResponse({'success': True})