// -*- c++ -*- $maintdir = "."; require("constants.php3"); require("$authdir/get-login.php3"); get_login(true); // If we get past here, we're logged in // Check old password $salt = substr($theUser->getPassword(), 0, 2); $check = crypt($old_pw, $salt); if (0 && $check != $theUser->getPassword()) { do_header("Bad old password"); exit; } // Change values if ($new_name != "") $theUser->setGecos($new_name); if ($new_email != "") $theUser->setEmail($new_email); if ($new_pw1 != $new_pw2) { do_header("Passwords did not match"); ?>
|
Return to the user profile Return to the main menu |