alephdata / aleph

Search and browse documents and data; find the people and companies you look for.

Home Page:http://docs.aleph.occrp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: creating a user twice via the CLI should error obviously

brassy-endomorph opened this issue · comments

Describe the bug

To Reproduce

Do this:

aleph create user test@test.com -p abc123
aleph create user test@test.com -p def456

Expected behavior

There is an error of any sort, and the password is not altered.

Aleph version

3.15.3

The command create user is actually an UPSERT operation, so create user should fail if called on an existing user and we should have a proper update user command which does the above.