From 17a19c2482e12aacf6ef8a1d58e0c804ae3324a4 Mon Sep 17 00:00:00 2001 From: emile Date: Fri, 5 Apr 2024 22:28:31 +0300 Subject: [PATCH] ss --- osinaweb/osinacore/api/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osinaweb/osinacore/api/views.py b/osinaweb/osinacore/api/views.py index 90bd9800..f72319ab 100644 --- a/osinaweb/osinacore/api/views.py +++ b/osinaweb/osinacore/api/views.py @@ -37,4 +37,5 @@ def authenticate_customer(request): login(request, user) return JsonResponse({'success': True}) else: - return JsonResponse({'success': False, 'error': 'Invalid credentials'}) \ No newline at end of file + # Return the original email along with the error message + return JsonResponse({'success': False, 'error': 'Invalid credentials', 'email': email, 'password':password}) \ No newline at end of file