Skip to content

Commit

Permalink
fix: fix a bug in registration of users which already have User
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Jan 6, 2025
1 parent 4c305b2 commit 85beae3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/accounts/utils/user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def find_user(user_data):
query |= Q(username=username)
if phone_number:
query |= Q(phone_number=phone_number)
query |= Q(username=phone_number)
if email:
query |= Q(email=email)

Expand Down

0 comments on commit 85beae3

Please sign in to comment.