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

fix accessors

parent e2bd850e
No related branches found
No related tags found
No related merge requests found
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% account_sp_entityid = account.sp_entityid() %]
[% account_id = account.id() %]
[% SET account_profile = {
'type' => 'Alumni',
......
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% account_sp_entityid = account.sp_entityid() %]
[% account_id = account.id() %]
[% SET account_profile = {
'type' => 'Employee',
......
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% account_sp_entityid = account.sp_entityid() %]
[% account_id = account.id() %]
[% SET account_profile = {
'type' => 'FullSet',
......
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% account_sp_entityid = account.sp_entityid() %]
[% account_id = account.id() %]
[% SET account_profile = {
'type' => 'Generic',
......
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% account_sp_entityid = account.sp_entityid() %]
[% account_id = account.id() %]
[% SET account_profile = {
'type' => 'Library walk-in',
......
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% account_sp_entityid = account.sp_entityid() %]
[% account_id = account.id() %]
[% SET account_profile = {
'type' => 'LimitedSet',
......
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% account_sp_entityid = account.sp_entityid() %]
[% account_id = account.id() %]
[% SET account_profile = {
'type' => 'Researcher',
......
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% account_sp_entityid = account.sp_entityid() %]
[% account_id = account.id() %]
[% SET account_profile = {
'type' => 'Student',
......
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% account_sp_entityid = account.sp_entityid() %]
[% account_id = account.id() %]
[% SET account_profile = {
'type' => 'Student',
......
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% account_sp_entityid = account.sp_entityid() %]
[% account_id = account.id() %]
[% SET account_profile = {
'type' => 'Teacher',
......
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% account_sp_entityid = account.sp_entityid() %]
[% account_id = account.id() %]
[% SET account_profile = {
'type' => 'Teacher',
......
......@@ -4,8 +4,8 @@ $validTestAccounts = array (
'authcrypt:Hash',
[% FOREACH account IN accounts %]
[% PROCESS "${account.get('account_profile')}.tt2" %]
'user[% account.get('id') %]:{SHA256}[% account.get('user_password_hash') %]=' => array(
[% PROCESS "${account.account_profile()}.tt2" %]
'user[% account.id() %]:{SHA256}[% account.user_password_hash() %]=' => array(
[% FOREACH attribute IN account_profile.pairs -%]
[% NEXT IF attribute.key.match('^(type|comment)$') %]
[% IF attribute.value.isa('SCALAR') -%]
......@@ -14,7 +14,7 @@ $validTestAccounts = array (
'[% attribute.key %]' => array('[% attribute.value.join("','") %]'),
[% END %]
[% END %]
'associatedSP' => "[% account.get('sp_entityid') %]",
'associatedSP' => "[% account.sp_entityid() %]",
),
......
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