We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Need to get password after login

Development and Programming

vw000's avatar
vw000
482 posts
6 years ago
vw000's avatar vw000

I know, I know, passwords should always be hashed and not be reversible but I need to bridge EE into another system so I need to get the users password.

This is only temporary because the other system has a one time token build in which is not yet finished.

Basically what I need is for an icon inside an EE members page when clicked logs the existing user into the other system with the same EE username and password. Its obvious that I don’t want to use a temp password on the other system, the username and password should be the same as the Expression Engine Member user. The problem to achieve this is that passwords are hashed, (correctly so).

So my idea is the following, get the password after the user logs in, from the POST form or some other way with PHP??? This is basically my question. How to get this. Once I get this for security purposes I will encrypt this in a session or in memory with PHP and I only need to use it one time because I need to pass the login into the other system when the users clicks the access icon. Then its deleted.

My question is if there is a variable or some other way to get the password used by the user that logs in to EE?

       
meatpaste's avatar
meatpaste
16 posts
6 years ago
meatpaste's avatar meatpaste

You should be able to use this hook and read the info from the $_POST variables

https://docs.expressionengine.com/latest/development/extension-hooks/module/member-auth.html#member_member_login_start

       
vw000's avatar
vw000
482 posts
6 years ago
vw000's avatar vw000

Thank you, does this go into a PHP file as an addon or I can just use it on a EE template that runs PHP code? I never really coded a plugin for ExpressionEngine.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.