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

Comments

ricardofaria created an issue. See original summary.

ricardofaria’s picture

StatusFileSize
new2.54 KB

As i'm a bit in rush, i will update what i have currently. Will update the correct one later.

ricardofaria’s picture

StatusFileSize
new2.55 KB

Previous patch had a bug verifying the current domain.

sunilpawar’s picture

sunilpawar’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.