diff --git a/osinaweb/osinacore/api/views.py b/osinaweb/osinacore/api/views.py index a1454baf..01624966 100644 --- a/osinaweb/osinacore/api/views.py +++ b/osinaweb/osinacore/api/views.py @@ -42,7 +42,7 @@ def authenticate_customer(request): return JsonResponse({'success': False, 'error': 'User with this email does not exist'}) - user = authenticate(request, username=email, password=password) + login(request, user) if user is not None: # Login the user