Commit 8d496cbf authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

[models] Group: fixed password checking

parent 0be68edc
......@@ -86,7 +86,7 @@ class Group(Base):
backref="parent_group")
def to_dict(self, user=None):
has_password = len(self.password) > 0 and not sha256_crypt.verify("", self.password)
has_password = self.password and not sha256_crypt.verify("", self.password)
member = None
if user:
for a in self.users:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment