File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 acl:agent <{{webId}}> ;
88
99 # Optional owner email, to be used for account recovery:
10- {{{accountMailto} }}
10+ {{#if email}}acl:agent <mailto:{{{email}}}>{{/if }}
1111
1212 # Set the access to the root storage folder itself
1313 acl:accessTo </>;
Original file line number Diff line number Diff line change @@ -81,11 +81,10 @@ class AccountTemplate {
8181 static templateSubstitutionsFor ( userAccount ) {
8282 let substitutions = {
8383 name : userAccount . displayName ,
84- webId : userAccount . webId
85- }
86- if ( userAccount . email ) {
87- substitutions . accountMailto = `acl:agent <mailto:${ userAccount . email } > ;`
84+ webId : userAccount . webId ,
85+ email : userAccount . email
8886 }
87+
8988 return substitutions
9089 }
9190
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ describe('AccountTemplate', () => {
7575
7676 let substitutions = AccountTemplate . templateSubstitutionsFor ( userAccount )
7777 expect ( substitutions . name ) . to . equal ( 'Alice Q.' )
78- expect ( substitutions . accountMailto ) . to . equal ( 'acl:agent <mailto: alice@example.com> ; ' )
78+ expect ( substitutions . email ) . to . equal ( 'alice@example.com' )
7979 expect ( substitutions . webId ) . to . equal ( 'https://alice.example.com/profile/card#me' )
8080 } )
8181 } )
@@ -84,7 +84,7 @@ describe('AccountTemplate', () => {
8484 it ( 'should process all the files in an account' , ( ) => {
8585 let substitutions = {
8686 webId : 'https://alice.example.com/#me' ,
87- accountMailto : 'acl:agent <mailto: alice@example.com> ; ' ,
87+ email : 'alice@example.com' ,
8888 name : 'Alice Q.'
8989 }
9090 let template = new AccountTemplate ( { substitutions } )
You can’t perform that action at this time.
0 commit comments