*** empty log message ***

svn path=/trunk/boinc/; revision=5872
This commit is contained in:
David Anderson 2005-04-15 22:58:32 +00:00
parent 33a36d367f
commit fbea520885
2 changed files with 9 additions and 2 deletions

View File

@ -27270,3 +27270,10 @@ David 15 April 2005
api/
boinc_api_fortran.C
David 15 April 2005
- Ops web: create account script broken
(fixes from Andy Read)
html/ops
create_account_action.php

View File

@ -9,10 +9,9 @@ function create_account($email_addr, $user_name, $munge) {
if ($munge) {
$email_addr = munge_email_addr($email_addr, $user->authenticator);
}
$user->email_addr = $email_addr;
$user->cross_project_id = random_string();
$t = time();
$query = "insert into user (create_time, email_addr, name, authenticator, cross_project_id) values ($t, '$user->email_addr', '$user->name', '$user->authenticator', '$user->cross_project_id')";
$query = "insert into user (create_time, email_addr, name, authenticator, cross_project_id) values ($t, '$email_addr', '$user->name', '$user->authenticator', '$user->cross_project_id')";
$result = mysql_query($query);
if ($result) return $user;
return false;
@ -51,6 +50,7 @@ echo "
<a href=\"$url\"> $url </a>
";
$user->email_addr = $email_addr;
send_auth_email($user, true, false);
admin_page_tail();