PDA

View Full Version : $vbulletin->GPC['password'] returning nothing...


DeadCode
03-08-2012, 02:37 AM
Hello, I am editing the register.php page.

I am trying to get the user password and encrypt it in sha1.

Doesn't work, even when I put echo $vbulletin->GPC['password'] next to a statement that uses it. What to do to make him return a value?

Thank you.

kh99
03-08-2012, 08:30 PM
The password isn't sent from the browser normally - it's sent after being passed to md5, I suppose for extra security so that the password isn't sent as text. If you want you can define DISABLE_PASSWORD_CLEARING in your config.php like:

define('DISABLE_PASSWORD_CLEARING', 1);


then you should get the password in $vbulletin->GPC['password'].

DeadCode
03-09-2012, 02:26 PM
Worked, thanks.