It appears that if you try to re-register an existing user, then the error message is duplicated. This is a quirk of how we use django-allauth. It actually requires a username and email, so the error messages are correct, it is just we don't want the user to have to enter a username and use their email as the username. I think it would be best for the backend to not send the error message about username, but if it is easier to do on the frontend, then fine, whichever is easiest.
Describe the bug
First noted in https://github.com/astrosat/supplier-app/issues/50
It appears that if you try to re-register an existing user, then the error message is duplicated. This is a quirk of how we use
django-allauth
. It actually requires ausername
andemail
, so the error messages are correct, it is just we don't want the user to have to enter ausername
and use theiremail
as theusername
. I think it would be best for the backend to not send the error message aboutusername
, but if it is easier to do on the frontend, then fine, whichever is easiest.