From 93d43fbcadfab7124213c465f07eb6987f904d3c Mon Sep 17 00:00:00 2001 From: emile Date: Fri, 5 Apr 2024 23:02:37 +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 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