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
When signing up for an account and trying to register with a email or username that has already been used the text of the error message is a bit strange, giving two errors instead of one.
It displays:
The email is already used.
This value is already used.
It would be preferred to just display the first line and not display the second one.
This is a very small issue but likely an easy fix for a better UX.
Thanks for the hard work all!
Environment
wallabag version that exhibits the issue: wallabag.it on Dec 10, 2020
The text was updated successfully, but these errors were encountered:
RayBB
changed the title
odd error message when signing up with an email or username is taken
odd error message when signing up with an email or username that is taken
Dec 10, 2020
In fact, it's because our User class defines 2 UniqueEntity: username and email.
And our User class extends also FOS\UserBundle\Model\User which already has UniqueEntity on these 2 fields. See vendor/friendsofsymfony/user-bundle/Resources/config/storage-validation/orm.xml:
If we delete this constraint definition, it's OK for the view side (the html form).
But on the API side, the constraint definition seems to be useful 🤔
Issue details
When signing up for an account and trying to register with a email or username that has already been used the text of the error message is a bit strange, giving two errors instead of one.
It displays:
It would be preferred to just display the first line and not display the second one.
This is a very small issue but likely an easy fix for a better UX.
Thanks for the hard work all!
Environment
wallabag version that exhibits the issue: wallabag.it on Dec 10, 2020
Steps to reproduce/test case
Screenshot
The text was updated successfully, but these errors were encountered: