Skip to content

Commit

Permalink
added the case when workspace has no password
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalTiwary committed Mar 18, 2024
1 parent 1dcae3d commit 65a6338
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/workspaces/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def set_workspace_password(self, password):
self.save()

def match_workspace_password(self, password):
if not self.workspace_password:
return False
return check_password(password, self.workspace_password)

@staticmethod
Expand Down

0 comments on commit 65a6338

Please sign in to comment.