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