my $user = Text::Tradition::User->new(
id => $username,
password => ($password ? crypt_password($password) : ''),
- display => ($userinfo->{display} ? $userinfo->{display} : $username),
+ email => ($userinfo->{email} ? $userinfo->{email} : $username),
role => $role,
);
## Somewhat ugly attribute extension reponse, contains
## google-email string which we can use as the id
- $userinfo->{display} = $userinfo->{extensions}{'http://openid.net/srv/ax/1.0'}{'value.email'};
+ $userinfo->{email} = $userinfo->{extensions}{'http://openid.net/srv/ax/1.0'}{'value.email'};
}
return;
my $user = $self->lookup(Text::Tradition::User->id_for_user($username));
return if(!$user || !$user->active);
- print STDERR "Found user, $username, display is :", $user->display, ":\n";
+ print STDERR "Found user, $username, email is :", $user->email, ":\n";
return $user;
}