Skip to content

Commit

Permalink
feat(objects): fix user search
Browse files Browse the repository at this point in the history
  • Loading branch information
Lowaiz committed Dec 14, 2023
1 parent f5166e4 commit 8cb94d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vaultwarden/models/bitwarden.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,10 @@ def user(self, user_id: UUID) -> OrganizationUserDetails:
)

def user_search(
self, email: str, mfa: bool = False, force_refresh: bool = False
self,
email: str,
mfa: bool | None = None,
force_refresh: bool | None = None,
) -> OrganizationUserDetails | None:
users = self.users(search=email, mfa=mfa, force_refresh=force_refresh)
if len(users) == 0:
Expand Down

0 comments on commit 8cb94d4

Please sign in to comment.