Skip to content

Commit

Permalink
refactor: update username as email if no username
Browse files Browse the repository at this point in the history
  • Loading branch information
slugb0t committed Oct 10, 2023
1 parent 0b15ad4 commit ac52ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def from_data(data: dict):

def update(self, data):
self.email_address = data["email_address"]
self.username = data["username"]
self.username = data["username"] if "username" in data else data["email_address"]
# self.email_verified = data["email_verified"]
# self.username = data["username"]
# self.hash = data["hash"]
Expand Down

0 comments on commit ac52ce6

Please sign in to comment.