fix: auth error messages (#1376)

This commit is contained in:
pablohashescobar 2023-06-23 17:28:21 +05:30 committed by GitHub
parent fef83d3153
commit df41daf71b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ class SignUpEndpoint(BaseAPIView):
# Check if the user already exists
if User.objects.filter(email=email).exists():
return Response(
{"error": "User already exist please sign in"},
{"error": "User with this email already exists"},
status=status.HTTP_400_BAD_REQUEST,
)