The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
non-VB using VB - password change
we have an intranet system we've built and it utilizes vBulletin's login system and so forth...everything works like a charm so far.
question is: there is a My Profile section that users will use to change their password...we dont want to use vBulletin's password change page, cause we have our own design. (the admin initially sets up the user with a temporary password as the site does not allow new registrations or outside access...we know who everyone is) will it work to simply update the vb_user table as such when they go to the My Profile section: Code:
$newpass = $_POST['newpass']; $currentpassword = mysql_query("SELECT passworddate, salt FROM vb_user WHERE userid = '$userid' LIMIT 1"); $current_pass = mysql_fetch_array($currentpassword); $vbsalt = $current_pass['salt']; $pass_hash = md5(md5($newpass) . $vbsalt); $passdate = date('Y-m-d'); $updatepassword = mysql_query("UPDATE vb_user SET password = '$pass_hash', passworddate = '$passdate' WHERE userid = '$userid'"); so is something wrong with how we are changing the password? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|