From d84fc1a0e9ac890f712b4952b133c1fbd7554d06 Mon Sep 17 00:00:00 2001 From: emile Date: Fri, 5 Apr 2024 22:25:21 +0300 Subject: [PATCH] ss --- osinaweb/osinacore/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})