Open stevenbal opened 6 days ago
latest
I noticed that several components support the UserModelEmailBackend, even though email is not a unique attribute of the User model. This leads to errors if you try to login with an email that is used by one or more users
UserModelEmailBackend
User
foo@bar.nl
Since Open Zaak and Referentielijsten have a constraint on this, I would expect this to be used in the other components as well https://github.com/open-zaak/open-zaak/blob/72e9025f1f924d1ffcd5ab6f83df58e3696f622b/src/openzaak/accounts/models.py#L50-L54
Please also check if this is an issue in default project.
Copy pasta
Product versie / Product version
latest
Omschrijf het probleem / Describe the bug
I noticed that several components support the
UserModelEmailBackend
, even though email is not a unique attribute of theUser
model. This leads to errors if you try to login with an email that is used by one or more usersStappen om te reproduceren / Steps to reproduce
foo@bar.nl
foo@bar.nl
and a passwordVerwacht gedrag / Expected behavior
Since Open Zaak and Referentielijsten have a constraint on this, I would expect this to be used in the other components as well https://github.com/open-zaak/open-zaak/blob/72e9025f1f924d1ffcd5ab6f83df58e3696f622b/src/openzaak/accounts/models.py#L50-L54