emile 1 year ago
parent 739ed2b640
commit 93d43fbcad

@ -42,7 +42,7 @@ def authenticate_customer(request):
return JsonResponse({'success': False, 'error': 'User with this email does not exist'}) 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: if user is not None:
# Login the user # Login the user

Loading…
Cancel
Save