Invalid username.

'; } elseif ($rnum > 1) { err("multiple accounts with this username"); } else { $e = mysql_fetch_array($r); if (oc_strtolower($e['email']) != oc_strtolower($_POST['email'])) { print '

Email does not match username.

'; } else { // username valid, reset pwd $newpwd = newPassword(); $q2 = "UPDATE " . OCC_TABLE_REVIEWER . " SET password='" . hashPassword($newpwd) . "' WHERE reviewerid='" . $e['reviewerid'] . "'"; $r2 = ocsql_query($q2) or err("unable to update password"); $msg = ' Per your request, we have issued you a new password for accessing the ' . $OC_configAR['OC_confName'] . ' OpenConf system. The new password is: ' . $newpwd . ' You may change this password at any time by signing in to the OpenConf system and updating your profile. '; if (sendEmail($_POST['email'], "Reviewer Password Reset", $msg, $OC_configAR['OC_notifyReviewerReset'])) { print 'We have emailed you a new password. Once you receive it, please sign in and change it.

'; } else { warn('We have reset your password, but have been unable to email it to you. Please contact the administrator.'); } printFooter(); exit; } } } else { print '

Please enter your username and the email you registered with below

'; } print '
Username:
Email:

'; printFooter(); ?>