core: fix test user not having password set properly

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-23 22:30:05 +01:00
parent 6703c0a5d1
commit 9c9c00755a

View file

@ -33,6 +33,7 @@ def create_test_admin_user(name: Optional[str] = None, set_password=False) -> Us
) )
if set_password: if set_password:
user.set_password(uid) user.set_password(uid)
user.save()
group.users.add(user) group.users.add(user)
return user return user