Problem/Motivation
I'm using the shared email login module, as i need to allow users to create 1 separate account to each domain, reusing the same email.
The issue is in _domain_login_restrict_reset_password_validate method.
If you try to login with the email, it will just pick the first user account it finds and do the checks after.
It needs to check if the user email is assigned with that domain in the case we are using shared email.
I'm not sure if there is a perfect solution for this but i will push a patch that works for my use case.
Steps to reproduce
Enable domain login restrict and shared email modules.
Create 1 account for each domain with the same email.
Try to login. It will not allow in the case it picked the wrong account not associated with the email.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | shared-email-3342344-2.patch | 2.55 KB | ricardofaria |
Comments
Comment #2
ricardofaria commentedAs i'm a bit in rush, i will update what i have currently. Will update the correct one later.
Comment #3
ricardofaria commentedPrevious patch had a bug verifying the current domain.
Comment #5
sunilpawar commented@ricardofaria
i have merged you changes : https://git.drupalcode.org/project/domain_login_restrict/-/merge_requests/5
Comment #6
sunilpawar commented