*** empty log message ***

svn path=/trunk/boinc/; revision=5533
This commit is contained in:
David Anderson 2005-02-26 09:03:52 +00:00
parent de8e6a9a25
commit 11f870952d
2 changed files with 9 additions and 2 deletions

View File

@ -25342,3 +25342,10 @@ David 25 Feb 2005
client/
cs_files.C
David 25 Feb 2005
- allow only one account per email address,
including munged email addresses (from Bruce Allen)
html/user/
create_account_action.php

View File

@ -5,7 +5,7 @@ include_once("../inc/util.inc");
include_once("../inc/email.inc");
function show_error($str) {
page_head("Create account: error");
page_head("Can't create account");
echo "$str<br>\n";
echo mysql_error();
echo "<p>Click your browser's <b>Back</b> button to try again.\n<p>\n";
@ -58,7 +58,7 @@ if (!is_valid_email_addr($new_email_addr)) {
name@domain"
);
}
$query = "select * from user where email_addr='$new_email_addr'";
$query = "select * from user where email_addr='$new_email_addr' or email_addr like '@$new_email_addr_%' limit 1";
$result = mysql_query($query);
if ($result) {
$user = mysql_fetch_object($result);