use Moose;
with qw(KiokuX::User);
-## 'id' provided by KiokuX::User stores our username
+## 'id' provided by KiokuX::User stores our username (email for local users, openid url for openid/google)
has 'password' => (is => 'rw', required => 1);
-has 'display' => (is => 'rw', lazy => 1, builder => '_build_display');
+has 'email' => (is => 'rw', lazy => 1, builder => '_build_email');
## Change this default active value if you want/need to have an admin confirm a user after they self-create.
has 'active' => (is => 'rw', default => sub { 1; });
has 'role' => (is => 'rw', default => sub { 'user' });
unless $tradition->has_user && $tradition->user->id eq $self->id;
};
-sub _build_display {
+sub _build_email {
my ($self) = @_;
- ## no display set, so use username/id
+ ## no email set, so use username/id
return $self->id;
}