Version: , by dabean
Developer Last Online: Dec 2003
Version: Unknown
Rating:
Released: 05-31-2001
Last Update: Never
Installs: 0
No support by the author.
Updated 15th July 2001
Simplish hack that allows end users to chose if they want to store encrypted versions of their password.
Full details of how this is implemented are contained in the file.
Requirements:
vBulletin 2.0.0
This has not been tested on rc1/2/3 beta1-5. It might work or it might not.
From the june 3rd update onwards a installation script is included, full details in the instructions.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I had orginally planned on improving the hack to allow users to revert to plain text passwords, but forgot to post exactly how to do it. Yes md5 is indeed non-reversable but you can allways prompt for a new password. If anyone really wants the exact code to do this then I can post it.
// validate old password
if ($currentpassword!=$bbuserinfo[password]) {
eval("standarderror(\"".gettemplate("error_wrongpassword")."\");");
exit;
}
above it add
PHP Code:
// secure password mod - encrypt password
if ($bbuserinfo[encryptedpass]==1) {
$currentpassword=md5($currentpassword);
} // end secure password mod
now for the actual improvement.
File: member.php
Find...
PHP Code:
if ($newpassword!=$newpasswordconfirm) {
eval("standarderror(\"".gettemplate("error_passwordmismatch")."\");");
exit;
}
// secure passwords
if ($bbuserinfo[encryptedpass]==1) {
$newpassword=md5($newpassword);
}
// end secure passwords
replace it with
PHP Code:
if ($newpassword!=$newpasswordconfirm) {
eval("standarderror(\"".gettemplate("error_passwordmismatch")."\");");
exit;
}
// secure passwords
if ($encryption=="off" && $bbuserinfo[encryptedpass]==1) {
$DB_site->query("UPDATE user SET encryptedpass=0 WHERE userid='$bbuserinfo[userid]'");
} else {
if ($bbuserinfo[encryptedpass]==1) {
$newpassword=md5($newpassword);
}
}
// end secure passwords
Find
PHP Code:
// secure passwords
if ($bbuserinfo[encryptedpass]==1) {
// md5 hash password & store todo
$cryptpassword=1;
$urltoforward=""
} else {
Replace with
PHP Code:
// secure passwords
if ($bbuserinfo[encryptedpass]==1 && $cryptpassword==0) {
// md5 hash password & store todo
$cryptpassword=1;
$downgradepass=1;
} else {
Is there anyway you can post a updated version of this hack in your first post of the thread. I saw where the last time you edited it was on the 5th I believe but I have seen on your last reply that you made changes on the 28th. Also does your zip also have Kevin's file in it?
Okay I've altered the zip to include the previous modifications and there is/was a table altering script included previously and currently so Kevin's file is no longer needed.