![]() |
Getting user password in plain text
I need to get user password in plaintext when they change there password.Then i will feed them to a hashing algo for a third party application . In profile.php which variable actually stores the user password in plaintext and its at which point.
I am interested with the start update password part Is it Code:
GPC['newpassword'] Thanks for the guidance |
The variable is $vbulletin->GPC['newpassword'].
Hook location profile_updatepassword_start. Although it's better to save the $vbulletin->GPC['newpassword'] variable in your own variable at profile_updatepassword_start and then use profile_updatepassword_complete to use the variable for your third party application because the password is updated/checked at that point. |
Make sure the password is not encrypted using javascript when sending the form. If so there isn't a php variable which contains plain text password. You would have to edit template and remove something like onsubmit="md5(...password)...."
|
Quote:
|
Quote:
Code:
if (THIS_SCRIPT == 'profile') |
Then there are 2 possibilities
Edit the 3rd party application to use md5 password or Remove the md5 javascript function in the template (Update) or using Kevin's way above and do something like this in php PHP Code:
|
I hope you are using https on your site, otherwise you are transmitting plaintext paswords over the internet, generally not a good idea.
|
Quote:
|
All times are GMT. The time now is 07:18 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|