Skip to content

Commit

Permalink
fixed first condition of available_username_email funtion from "and" …
Browse files Browse the repository at this point in the history
…to or\
  • Loading branch information
Pooria Toof authored and Pooria Toof committed Aug 20, 2024
1 parent 0093fb6 commit d1ad5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/user_service/user_service/user_app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def available_username_email(self, request) -> Response:
username = request.data.get("username")
response_message = {}
status_code = status.HTTP_200_OK
if username is not None and email is not None:
if username is not None or email is not None:
user_obj = UserProfileModel.objects.filter(username = username).first()
email_obj = UserProfileModel.objects.filter(email = email).first()
if user_obj is not None and email_obj is not None:
Expand Down

0 comments on commit d1ad5c1

Please sign in to comment.