|
|
@ -37,7 +37,7 @@ def authenticate_customer(request):
|
|
|
|
except User.DoesNotExist:
|
|
|
|
except User.DoesNotExist:
|
|
|
|
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, email=email)
|
|
|
|
user = authenticate(request, email=email, password='ibiye4700')
|
|
|
|
|
|
|
|
|
|
|
|
if user is not None:
|
|
|
|
if user is not None:
|
|
|
|
login(request, user)
|
|
|
|
login(request, user)
|
|
|
|