Skip to content

Commit

Permalink
Merge pull request #46 from AI4Bharat/minor_fix_wk_pass
Browse files Browse the repository at this point in the history
  • Loading branch information
ishvindersethi22 authored Mar 18, 2024
2 parents 1dcae3d + 65a6338 commit 30737b9
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 30737b9

Please sign in to comment.