From 65a63386a7241b1828f64692e46e482d9102636a Mon Sep 17 00:00:00 2001 From: Kunal Tiwary Date: Mon, 18 Mar 2024 09:34:42 +0000 Subject: [PATCH] added the case when workspace has no password --- backend/workspaces/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/workspaces/models.py b/backend/workspaces/models.py index 1b0050c8..0a10113e 100644 --- a/backend/workspaces/models.py +++ b/backend/workspaces/models.py @@ -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