fix: email check validation to handle case in-sensitive email (#6168)
This commit is contained in:
parent
666ddf73b6
commit
9ee41ece98
2 changed files with 4 additions and 0 deletions
|
|
@ -60,6 +60,9 @@ class EmailCheckEndpoint(APIView):
|
|||
)
|
||||
return Response(exc.get_error_dict(), status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
# Lower the email
|
||||
email = str(email).lower().strip()
|
||||
|
||||
# Validate email
|
||||
try:
|
||||
validate_email(email)
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ class EmailCheckSpaceEndpoint(APIView):
|
|||
)
|
||||
return Response(exc.get_error_dict(), status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
email = str(email).lower().strip()
|
||||
# Validate email
|
||||
try:
|
||||
validate_email(email)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue