Just noticed this. Got an e-mail from a User (username Kevin) who could not log in. So I checked, and it turns out there is a "kevin" (who signed up first) and a "Kevin"- him, who could not get it.
So, it seems to me, that the check to see if a name is already in use in User.pm should check, well, all lower case maybe (but still allow users to capitalize their usernames in any way they want, and save them that way.)
Here is the existing code:
sub cuser_un_istaken {
# -------------------------------------------------------------------
my $username = shift;
return $DB->table('comm_users')->count( { comm_username => $username }) ? 1 : 0;
}
I was thinking something like:
sub cuser_un_istaken {
# -------------------------------------------------------------------
my $username = shift;
$username = lc($username);
return $DB->table('comm_users')->count( { comm_username => $username }) ? 1 : 0;
}
But that does not address making comm_username also lower case.
Any suggestions?
dave
Big Cartoon DataBase
Big Comic Book DataBase
So, it seems to me, that the check to see if a name is already in use in User.pm should check, well, all lower case maybe (but still allow users to capitalize their usernames in any way they want, and save them that way.)
Here is the existing code:
sub cuser_un_istaken {
# -------------------------------------------------------------------
my $username = shift;
return $DB->table('comm_users')->count( { comm_username => $username }) ? 1 : 0;
}
I was thinking something like:
sub cuser_un_istaken {
# -------------------------------------------------------------------
my $username = shift;
$username = lc($username);
return $DB->table('comm_users')->count( { comm_username => $username }) ? 1 : 0;
}
But that does not address making comm_username also lower case.
Any suggestions?
dave
Big Cartoon DataBase
Big Comic Book DataBase