Skip to content
Snippets Groups Projects
Commit eb350e3a authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

cosmetics

parent cf7c9be2
Branches
Tags
No related merge requests found
...@@ -114,14 +114,14 @@ sub print { ...@@ -114,14 +114,14 @@ sub print {
$fd = \*STDOUT unless $fd; $fd = \*STDOUT unless $fd;
printf $fd printf $fd
"Account ID=%s; password_hash=%s; sp_entityid=%s; profile=%s; scope=%s; creation_date=%s; expiration_date=%s\n", "Account ID=%s; password_hash=%s; sp_entityid=%s; profile=%s; scope=%s; creation_date=%s; expiration_date=%s\n",
$self->id(), $self->id(),
$self->password_hash(), $self->password_hash(),
$self->sp_entityid(), $self->sp_entityid(),
$self->profile(), $self->profile(),
$self->scope(), $self->scope(),
$self->creation_date()->strftime('%Y:%m:%d'), $self->creation_date()->strftime('%Y:%m:%d'),
$self->expiration_date()->strftime('%Y:%m:%d'); $self->expiration_date()->strftime('%Y:%m:%d');
} }
sub internal_uid { sub internal_uid {
......
...@@ -22,17 +22,16 @@ __PACKAGE__->meta->setup( ...@@ -22,17 +22,16 @@ __PACKAGE__->meta->setup(
unique_key => [ 'entityid' ], unique_key => [ 'entityid' ],
); );
## Print the content of a test account
sub print { sub print {
my ($self, $fd) = @_; my ($self, $fd) = @_;
$fd = \*STDOUT unless $fd; $fd = \*STDOUT unless $fd;
printf $fd printf $fd
"ServiceProvider ID=%s; entityid=%s; displayname=%s; contacts=%s\n", "Service ID=%s; entityid=%s; displayname=%s; contacts=%s\n",
$self->id(), $self->id(),
$self->entityid(), $self->entityid(),
$self->displayname(), $self->displayname() || '',
join(',', $self->contacts()); join(',', $self->contacts());
} }
## Check if email address is a known contact ## Check if email address is a known contact
......
...@@ -29,10 +29,12 @@ sub print { ...@@ -29,10 +29,12 @@ sub print {
$fd = \*STDOUT unless $fd; $fd = \*STDOUT unless $fd;
printf $fd printf $fd
"AuthenticationToken ID=%s; token=%s; email_address=%s; sp_entityid=%s; creation_date=%s\n", "Token ID=%s; token=%s; email_address=%s; sp_entityid=%s; creation_date=%s\n",
$self->id(), $self->token(), $self->email_address(), $self->id(),
$self->sp_entityid(), $self->token(),
$self->creation_date()->strftime('%Y:%m:%d'); $self->email_address(),
$self->sp_entityid(),
$self->creation_date()->strftime('%Y:%m:%d');
} }
1; 1;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment