mirror of https://github.com/BOINC/boinc.git
32 lines
669 B
PHP
32 lines
669 B
PHP
<?php
|
|
|
|
require_once("db.inc");
|
|
require_once("util.inc");
|
|
|
|
db_init();
|
|
|
|
page_head("Password");
|
|
$email_addr = trim($HTTP_POST_VARS["email_addr"]);
|
|
if (strlen($email_addr)) {
|
|
$query = sprintf(
|
|
"select * from user where email_addr = '%s'",
|
|
$email_addr
|
|
);
|
|
$result = mysql_query($query);
|
|
$user = mysql_fetch_object($result);
|
|
mysql_free_result($result);
|
|
send_auth_email($user->email_addr, $user->authenticator);
|
|
}
|
|
|
|
if (!$user) {
|
|
echo "There is no user with that email address. <br>
|
|
Try reentering your email address.<p>
|
|
";
|
|
} else {
|
|
echo "Your account key has been emailed to ".$email_addr.".<p>";
|
|
}
|
|
|
|
page_tail();
|
|
|
|
?>
|