safeQueryReturnsAffectedRows("UPDATE users SET forgot=NULL,svnpasswd=?,pchanged=? WHERE userid=? AND forgot=?", [$svnpasswd, $ts, $id, $key]); if ($res) { echo '
Okay, your password has been changed. It could take as long as an hour before this change makes it to the VCS server and other services. To change your password again, you\'ll have to start this process over to get a new key.
'; foot(); exit; } else { echo 'Naughty you, the key you used to access this page doesn\'t match what we have on file for that userid.
'; } } else { echo 'Those two passwords didn\'t match!
'; } } ?>You're in the home stretch now. Just choose a new password (typing it twice, to avoid typos and another trip around this merry-go-round).
row("SELECT * FROM users WHERE username = ?", [$user]); if ($row) { $newpass = random_password(); $query = "UPDATE users SET forgot=? WHERE userid=?"; $pdo->safeQuery($query, [$newpass, $row['userid']]); $body = "Someone filled out the form that says you forgot your php.net VCS password. If it wasn't you, don't worry too much about it. Unless someone is reading your mail, there's not much they can do. (But you may want to change your password using the instructions below, just to be safe.) To change your password, simply use the URL below and choose a new password. https://main.php.net/forgot.php?id=$row[userid]&key=$newpass Let us know if you have any further problems. -- systems@php.net "; mailer( $row['email'], "Password change instructions for $row[username]", $body, new MailAddress('systems@php.net', 'PHP Group')); echo 'Okay, instructions on how to change your password have been sent to your email address. If you don\'t receive them, you\'ll have to contact systems@php.net for help.
'; foot(); exit; } else {?>There's nobody named around here. Perhaps you need to contact systems@php.net for help.
Forgot your VCS password, huh? Just fill in your VCS username, and instructions will be sent to you on how to change your password.