From 5653a05441941274b1e33065eba68ec1d6c6a0f6 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Fri, 13 Nov 2020 18:46:16 +0100 Subject: [PATCH] no need to define an accessor just to alias another one --- lib/AccountManager/Account.pm | 5 ----- templates/other/accounts.php.tt2 | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/AccountManager/Account.pm b/lib/AccountManager/Account.pm index 356a4b0..e4b6720 100644 --- a/lib/AccountManager/Account.pm +++ b/lib/AccountManager/Account.pm @@ -49,9 +49,4 @@ sub internal_uid { return 'user' . $self->id(); } -sub associatedSP { - my ($self) = @_; - return $self->{entityid}; -} - 1; diff --git a/templates/other/accounts.php.tt2 b/templates/other/accounts.php.tt2 index e208c87..9cabafe 100644 --- a/templates/other/accounts.php.tt2 +++ b/templates/other/accounts.php.tt2 @@ -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("'") %]), -- GitLab