vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




Don't Require Password Confirmation

Ziki
02-04-2007, 05:47 AM
This modification was brought to you by
Ziki's hideout~The hideout from reality

http://www.zikihideout.com/




~Hack name

Don't Require Password Confirmation




~Hack description

Requested by Floris.This modification simply removes the password confirmation so users don't have to verify the password again.




~Hack options

None




~Hack info

File uploads: 0

Template edits: 4

Templates: 0

File edits: 3

Plugins: 0

SQL Queries: 0

Phrases: 0

Settings: 0


Install time: 3 minutes



Install level: Medium





~Hack installation





Step 1: Open template register ,then find and delete this:



<script type="text/javascript">


function verify_passwords(password1, password2)
{
// do various checks, this will save people noticing mistakes on next page
if (password1.value == '' || password2.value == '')
{
alert('$vbphrase[fill_out_both_password_fields]');
return false;
}
else if (password1.value != password2.value)
{
alert('$vbphrase[entered_passwords_do_not_match]');
return false;
}
else
{
<if condition="$show['coppa']">
pass_copy = password1.value;
passconfirm_copy = password2.value;
</if>

var junk_output;

md5hash(password1, document.forms.register.password_md5, junk_output, $show[nopasswordempty]);
md5hash(password2, document.forms.register.passwordconfirm_md5, junk_output, $show[nopasswordempty]);

<if condition="$show['coppa']">
document.forms.register.password.value = pass_copy;
document.forms.register.passwordconfirm.value = passconfirm_copy;
</if>

return true;
}
return false;
}
</script>


onsubmit="return verify_passwords(password, passwordconfirm);"



<input type="hidden" name="passwordconfirm_md5" />



<td>


$vbphrase[confirm_password]:<br />
<input type="password" class="bginput" name="passwordconfirm" size="25" maxlength="15" value="$passwordconfirm" />
</td>


Step 2: In the register.php file find and delete this parts of code:



'passwordconfirm' => TYPE_STR,


'passwordconfirm_md5' => TYPE_STR,


OR (empty($vbulletin->GPC['passwordconfirm']) AND empty($vbulletin->GPC['passwordconfirm_md5']))




// check for matching passwords


if ($vbulletin->GPC['password'] != $vbulletin->GPC['passwordconfirm'] OR (strlen($vbulletin->GPC['password_md5']) == 32 AND $vbulletin->GPC['password_md5'] != $vbulletin->GPC['passwordconfirm_md5']))
{
$userdata->error('passwordmismatch');
}






~Hack screenshots

None




~Hack copyright

This may not be distributed,released or claimed as your work without author's permission.

abdullateef
09-12-2007, 05:16 PM
thanks

Good work


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum