Election-Tech-Initiative / electionguard-api-python

ElectionGuard Web API in python to demonstrate usage of electionguard-python in performing ballot encryption, casting, spoiling, and tallying.
https://www.electionguard.vote/
MIT License
36 stars 26 forks source link

🐞 'default' user is getting duplicated #207

Closed lprichar closed 2 years ago

lprichar commented 2 years ago

Is there an existing issue for this?

Current Behavior

If you delete the database and restart the app, then it seeds the system with two user accounts called default.

Expected Behavior

There should be only one admin user called default

Steps To Reproduce

  1. Stop all docker containers
  2. Delete electionguard-db
  3. Restart all docker containers
  4. Login (POST to {{mediator-url}}/api/{{version}}/auth/login)
  5. POST to {{mediator-url}}/api/{{version}}/user/find?skip=0&limit=100 with an empty filter {"filter": {} }

Expected: one user Actual: two users

Environment

- OS:

Anything else?

No response

colleenirt commented 2 years ago

This will not be worked or considered for 1.0. A new issue will be created if needed in the future.