简体   繁体   中英

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.

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.

I need to store the plain joomla password in session and then retrieve and encode with the encryption method of data warehouse interface.

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?

I'm a Joomla newbie ;)

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). 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").

I hope it helped!

After some research, I think the event you should use is "onUserAuthenticate". You can see how to use it in /plugins/authentication/joomla.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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