Commit 6f25488d authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

[models] Group: utilize `User.encrypt_password`

parent 7a2eec74
......@@ -164,7 +164,7 @@ class Group(Base):
# parameters valid -> create and add group
group = Group(name=name,
privacy=privacy,
password=sha256_crypt.encrypt(password))
password=User.encrypt_password(password))
session.add(group)
session.commit()
return group
......
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