Commit 03a866f7 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Heptapod: store user in registry if not creation

In the refactor for the users registry, we forgot to store
the `User` instance for where expected users (only actual example
is `test_basic`) already present in the database.

Wasn't catched by CI because it runs on a fresh database.

--HG--
branch : stable
parent 6b153b87be71
Pipeline #17971 passed with stages
in 21 minutes and 5 seconds
......@@ -91,10 +91,9 @@ def ensure_user(heptapod, name, password=None, fullname=None):
user = heptapod.users.get(name)
if user is None:
user = User.search(heptapod, name)
if user is None:
user = User.create(heptapod, name,
password=password, fullname=fullname)
if user is None:
user = User.create(heptapod, name,
password=password, fullname=fullname)
user.store_in_heptapod()
user.password = password
......
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