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 '' . oc_('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"); //T: $s = conference short name (e.g., CONF2012) $msg = "\n" . sprintf(oc_('Per your request, we have issued you a new password for accessing the %s OpenConf system. The new password is:'), $OC_configAR['OC_confName']) . "\n\n " . $newpwd . "\n\n" . oc_('You may change this password at any time by signing in to the OpenConf system and updating your profile.') . "\n\n"; if (sendEmail($_POST['email'], "Reviewer Password Reset", $msg, $OC_configAR['OC_notifyReviewerReset'])) { print sprintf(oc_('We have emailed you a new password. Once you receive it, please sign in and change it.'), 'signin.php') . ''; } else { warn(oc_('We have reset your password, but have been unable to email it to you. Please contact the administrator.')); } printFooter(); exit; } } } else { print '' . oc_('Please enter your username and the email you registered with below') . '
'; } print ''; printFooter(); ?>