简体   繁体   English

在joomla会话中存储mod_login密码

[英]store mod_login password in joomla session

We are using Joomla for the company's portal and a separate interface written in java as something like a data warehouse. 我们正在使用Joomla作为公司的门户,并使用用Java编写的单独接口作为数据仓库之类的东西。

Now there are some integration problems. 现在存在一些集成问题。 The encryption method of joomla portal is different from the data warehouse and we need the users logged in portal to be able to log in to data warehouse interface without providing login information again. joomla门户的加密方法与数据仓库不同,我们需要登录门户的用户才能登录到数据仓库界面,而无需再次提供登录信息。

I need to store the plain joomla password in session and then retrieve and encode with the encryption method of data warehouse interface. 我需要在会话中存储普通的joomla密码,然后使用数据仓库接口的加密方法进行检索和编码。

Now my question is: in which file mod_login authenticates and the plain password is still alive so that i can store the plain password(or encrypted password using data warehouse's method) in session to retrieve it later? 现在我的问题是:哪个文件中的mod_login进行身份验证,并且普通密码仍然有效,以便我可以在会话中存储普通密码(或使用数据仓库方法加密的密码)以在以后检索它?

I'm a Joomla newbie ;) 我是Joomla新手;)

It isn't mod_login who makes the real authentication, you should look at components/com_user (in your case, you should probably look at the controller). 并不是真正的身份验证由mod_login进行,您应该查看components / com_user(在您的情况下,您可能应该查看控制器)。 Anyway, try not to modify any Joomla core files, may be you can achieve the same result by creating a plugin (if I'm not wrong, there's an event called something like "onUserLogin"). 无论如何,请尽量不要修改任何Joomla核心文件,也许可以通过创建一个插件来达到相同的结果(如果我没记错的话,会有一个名为“ onUserLogin”的事件)。

I hope it helped! 希望对您有所帮助!

After some research, I think the event you should use is "onUserAuthenticate". 经过研究,我认为您应该使用的事件是“ onUserAuthenticate”。 You can see how to use it in /plugins/authentication/joomla. 您可以在/ plugins / authentication / joomla中查看如何使用它。

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

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