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

cosmetics

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