astrosat / django-astrosat-users

Common backend library for Astrosat projects' user management
GNU General Public License v3.0
2 stars 0 forks source link

Registering existing user error messages #65

Closed allynt closed 4 years ago

allynt commented 4 years ago

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 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.

duplicate-error