diff --git a/templates/other/accounts.php.tt2 b/templates/other/accounts.php.tt2 index 2baf9e1bfd31d62ec38849a9aa3ec0dcbd9a0efc..e478c6baec649770cf663ca0d5152b0efed0d4a6 100644 --- a/templates/other/accounts.php.tt2 +++ b/templates/other/accounts.php.tt2 @@ -1,18 +1,18 @@ <?php // PhP configuration file loaded in simpleSamlPhp authsources.php file -$validTestAccounts = array ( +$validTestAccounts = [ 'authcrypt:Hash', [% FOREACH account IN accounts %] [% template = account.profile() _ '.tt2' %] [% 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.entityid().quote %]), + '[% account.internal_uid() %]:[% account.password_hash() %]' => [ + 'internal_uid' => [[% account.internal_uid().quote %]], + 'associatedSP' => [[% account.entityid().quote %]], [% FOREACH pair IN attributes.pairs %] - '[% pair.key %]' => array([% pair.value.quote("'").join(', ') %]), + '[% pair.key %]' => [[% pair.value.quote("'").join(', ') %]], [% END %] - ), + ], [% END %] -); +];