Typo3-9.x Felogin- login problem with multiple domains

525 views Asked by At

I have two domains. E.g-:: a.domain.com, b.domain.com . In both domains I have used the fe_login plugin. In backend I have 2 folder Fe-User1 for a.domain.com and other Fe-User2 for b.domain. And both folder have different login users.

So the problem is that a.domain.com users can login in b.domain.com login panel and viceversa. I want different users for both domains. In database table both domain users details are added but with different pid.

So I can differentiate users for a.domain.com and b.domain.com?

Could anyone please tell me how can I do this? How can I write typoscript for this? Thanks in advance!

2

There are 2 answers

3
Julian Hofmann On

In Flexform "User Storage Page", respectively in TypoScript "plugin.tx_felogin_pi1.storagePid" is the way to define certain sysfolders for allowed fe_users. This way, for both Login plugins you can define separate sysfolders as used storage.

1
M Klein On

The authentication part of the core is executed before any TS configuration is loaded. It does not know about a sys-folder restriction from there.

See \TYPO3\CMS\Sv\AuthenticationService::getUser()

The allowed storage must be present as POST parameter named pid. (felogin usually generated the login form accordingly.)

The initialization happens in: \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::initFEuser