and we officially have email to discussion working

This commit is contained in:
JT Smith 2006-04-10 13:21:46 +00:00
parent f4376ab5be
commit a15795519d
2 changed files with 3 additions and 3 deletions

View file

@ -489,7 +489,7 @@ sub newByEmail {
my $class = shift;
my $session = shift;
my $email = shift;
my ($id) = $session->dbSlave->quickArray("select userId from userProfileData where fieldName='mail' and fieldData=?",[$email]);
my ($id) = $session->dbSlave->quickArray("select userId from userProfileData where fieldName='email' and fieldData=?",[$email]);
my $user = $class->new($session, $id);
return undef unless $user->username;
return $user;