Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove check for LOGIN_FIELDS being unique #208

Closed
simon-ccoms opened this issue Feb 16, 2023 · 1 comment
Closed

Remove check for LOGIN_FIELDS being unique #208

simon-ccoms opened this issue Feb 16, 2023 · 1 comment

Comments

@simon-ccoms
Copy link

In my setup, I make the User's email non-unique (deliberately) as I have multiple sites under the same API and the same email address should be able to be used on more than one site.

In my authentication methods for logging these users on, I check that the login data also contains a reference to the site they're trying to log on to so that the combination of "site and email address" is unique. But email itself is not unique.

But as it stands, this library won't let me do that because of the check that all the LOGIN_FIELDS (one of which is email) are unique.

@apragacz
Copy link
Owner

Hi @simon-ccoms, sorry for lack of response. I added 'USER_LOGIN_FIELDS_UNIQUE_CHECK_ENABLED' setting which gives you the ability do disable that check.

It will be released in the next version (v0.8.3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants