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

no need to define an accessor just to alias another one

parent bf7b134e
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,4 @@ sub internal_uid {
return 'user' . $self->id();
}
sub associatedSP {
my ($self) = @_;
return $self->{entityid};
}
1;
......@@ -8,7 +8,7 @@ $validTestAccounts = array (
[% PROCESS $template scope=account.scope() id=account.id() | trim %]
'[% account.internal_uid() %]:{SHA256}[% account.password_hash() %]=' => array(
'internal_uid' => array([% account.internal_uid().quote %]),
'associatedSP' => array([% account.associatedSP().quote %]),
'associatedSP' => array([% account.entityid().quote %]),
[% FOREACH attribute IN [ 'cn', 'displayName', 'givenName', 'sn', 'mail', 'schacHomeOrganization', 'schacHomeOrganizationType', 'eduPersonPrincipalName' ] %]
[% NEXT UNLESS attributes.$attribute %]
'[% attribute %]' => array([% attributes.$attribute.quote("'") %]),
......
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