You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At step 5, create a superuser, do this twice, with the same email, but different username
Complete the setup
Run the server and try to log in
At this point the log in fails with the following error:
File "/Users/james/repos/MyFinances/venv/lib/python3.11/site-packages/django/db/models/query.py", line 652, in get
raise self.model.MultipleObjectsReturned(
backend.models.User.MultipleObjectsReturned: get() returned more than one User -- it returned 2!
I have tested this process a few times, the program seems to only check for a duplicate user name when creating a superuser, however allows you to create a new user with a different username, and the same email. This causes log in to fail, as log in appears to check for email, then throws an error when it finds two accounts with the same email.
I assume the same protection that is in place to check for a duplicate username could be utilized to also check for a duplicate email address.
The text was updated successfully, but these errors were encountered:
What version of MyFinances are you currently using?
latest
What device type are you currently facing the issue on?
Desktop
Describe the bug
Steps:
At this point the log in fails with the following error:
I have tested this process a few times, the program seems to only check for a duplicate user name when creating a superuser, however allows you to create a new user with a different username, and the same email. This causes log in to fail, as log in appears to check for email, then throws an error when it finds two accounts with the same email.
I assume the same protection that is in place to check for a duplicate username could be utilized to also check for a duplicate email address.
The text was updated successfully, but these errors were encountered: