简体   繁体   English

Typo3-9.x Felogin - 多域登录问题

[英]Typo3-9.x Felogin- login problem with multiple domains

I have two domains.我有两个域。 Eg-:: a.domain.com, b.domain.com.例如-:: a.domain.com,b.domain.com。 In both domains I have used the fe_login plugin.在这两个域中,我都使用了 fe_login 插件。 In backend I have 2 folder Fe-User1 for a.domain.com and other Fe-User2 for b.domain.在后端我有 2 个文件夹 Fe-User1 用于 a.domain.com 和其他 Fe-User2 用于 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.所以问题是 a.domain.com 用户可以登录 b.domain.com 登录面板,反之亦然。 I want different users for both domains.我想要两个域的不同用户。 In database table both domain users details are added but with different pid.在数据库表中,两个域用户的详细信息都被添加但具有不同的 pid。

So I can differentiate users for a.domain.com and b.domain.com?所以我可以区分 a.domain.com 和 b.domain.com 的用户吗?

Could anyone please tell me how can I do this?谁能告诉我我该怎么做? How can I write typoscript for this?我怎样才能为此写打字稿? Thanks in advance!提前致谢!

In Flexform "User Storage Page", respectively in TypoScript "plugin.tx_felogin_pi1.storagePid" is the way to define certain sysfolders for allowed fe_users.在 Flexform 的“用户存储页面”中,分别在 TypoScript 中的“plugin.tx_felogin_pi1.storagePid”是为允许的 fe_users 定义某些 sysfolders 的方式。 This way, for both Login plugins you can define separate sysfolders as used storage.这样,对于两个登录插件,您都可以将单独的 sysfolders 定义为已用存储。

The authentication part of the core is executed before any TS configuration is loaded.在加载任何 TS 配置之前执行核心的身份验证部分。 It does not know about a sys-folder restriction from there.它不知道那里的系统文件夹限制。

See \TYPO3\CMS\Sv\AuthenticationService::getUser()请参阅\TYPO3\CMS\Sv\AuthenticationService::getUser()

The allowed storage must be present as POST parameter named pid .允许的存储必须以名为pid的 POST 参数的形式出现。 (felogin usually generated the login form accordingly.) (felogin 通常会相应地生成登录表单。)

The initialization happens in: \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::initFEuser初始化发生在: \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::initFEuser

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM