setNewEmailAndHash($u->getEmail(), $confirm_hash); if ($u->isError()) { form_release_key(getStringFromRequest('form_key')); exit_error($u->getErrorMessage(),'my'); } else { $message = sprintf(_('Someone (presumably you) on the %s site requested a password change through email verification.'), forge_get_config ('forge_name')); $message .= _('If this was not you, ignore this message and nothing will happen.'); $message .= "\n\n"; $message .= _('If you requested this verification, visit the following URL to change your password:'); $message .= "\n\n"; $message .= util_make_url("/account/lostlogin.php?ch=_".$confirm_hash); $message .= "\n\n"; $message .= sprintf(_('-- the %s staff'), forge_get_config ('forge_name')); $message .= "\n"; util_send_message($u->getEmail(),sprintf(_('%s Verification'), forge_get_config ('forge_name')),$message); $HTML->header(array('title'=>_('Lost Password Confirmation'))); echo '

'.printf(_('An email has been sent to the address you have on file. Follow the instructions in the email to change your account password.').'

'._("Home").'', util_make_url ('/')).'

'; $HTML->footer(array()); exit(); } } $HTML->header(array('title'=>"Lost Account Password")); echo '

' . _('Hey... losing your password is serious business. It compromises the security of your account, your projects, and this site.') . '

'; echo '

' . _('Clicking “Send Lost PW Hash” below will email a URL to the email address we have on file for you. In this URL is a 128-bit confirmation hash for your account. Visiting the URL will allow you to change your password online and login.') . '

'; ?>



footer(array()); // Local Variables: // mode: php // c-file-style: "bsd" // End: