*** empty log message ***

svn path=/trunk/boinc/; revision=7229
This commit is contained in:
Rom Walton 2005-08-10 18:56:35 +00:00
parent bf217369ab
commit 381fe4ade9
2 changed files with 15 additions and 15 deletions

View File

@ -13,9 +13,9 @@ xml_header();
$config = get_config();
if (parse_bool($config, "disable_account_creation")) {
echo "<account_out>";
echo "<account_out>\n";
echo "<error_num>-208</error_num>\n";
echo "</account_out>";
echo "</account_out>\n";
exit();
}
@ -25,16 +25,16 @@ $passwd_hash = process_user_text(get_str("passwd_hash"));
$user_name = process_user_text(get_str("user_name"));
if (!is_valid_email_addr($email_addr)) {
echo "<account_out>";
echo "<account_out>\n";
echo "<error_num>-205</error_num>\n";
echo "</account_out>";
echo "</account_out>\n";
exit();
}
if (strlen($passwd_hash) != 32) {
echo "<account_out>";
echo "<account_out>\n";
echo "<error_num>-206</error_num>\n";
echo "</account_out>";
echo "</account_out>\n";
exit();
}
@ -44,15 +44,15 @@ $now = time();
$query = "insert into user (create_time, email_addr, name, authenticator, send_email, show_hosts, cross_project_id, passwd_hash) values($now, '$email_addr', '$user_name', '$authenticator', 1, 1, '$cross_project_id', '$passwd_hash')";
$result = mysql_query($query);
if (!$result) {
echo "<account_out>";
echo "<account_out>\n";
echo "<error_num>-207</error_num>\n";
echo "</account_out>";
echo "</account_out>\n";
exit();
}
echo "<account_out>";
echo "<account_out>\n";
echo "<authenticator>$authenticator</authenticator>\n";
echo "</account_out>";
echo "</account_out>\n";
?>

View File

@ -16,15 +16,15 @@ $passwd_hash = process_user_text(get_str("passwd_hash"));
$user = lookup_user_email_addr($email_addr);
if (!$user) {
echo "<account_out>";
echo "<account_out>\n";
echo "<error_num>-161</error_num>\n";
echo "</account_out>";
echo "</account_out>\n";
exit();
}
echo "<account_out>";
echo "<authenticator>$user->authenticator</authenticator>";
echo "</account_out>";
echo "<account_out>\n";
echo "<authenticator>$user->authenticator</authenticator>\n";
echo "</account_out>\n";
?>