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

a bit more consistency in variable names

parent d2f09617
No related branches found
No related tags found
No related merge requests found
......@@ -468,8 +468,12 @@ sub req_complete_challenge {
name => $self->{configuration}->{app}->{name},
},
user => $user,
idp => $idp,
sp => $entityid,
idp => {
entityid => $idp,
},
sp => {
entityid => $entityid,
},
to => $email,
token => $token->secret(),
challenge_url => sprintf(
......@@ -645,9 +649,13 @@ sub req_create_accounts {
data => {
action => 'create_accounts',
accounts => \@accounts,
entityid => $entityid,
idp => $self->{configuration}->{idp}->{name},
url => $sp->information_url(),
idp => {
name => $self->{configuration}->{idp}->{name},
},
sp => {
entityid => $entityid,
url => $sp->information_url(),
},
email => $email,
key => $key,
token => $download_token->secret(),
......
<p>
[% lh.maketext("This is an email challenge automatically sent to you by [_1].", app.name) %]
[% lh.maketext("User [_1], authenticated by Identity Provider [_2], has requested creation of test accounts for Service Provider [_3].", user, idp, sp) %]
[% lh.maketext("User [_1], authenticated by Identity Provider [_2], has requested creation of test accounts for Service Provider [_3].", user, idp.entityid, sp.entityid) %]
[% lh.maketext("The address [_1] is mentioned in the federation metadata as a contact for this Service Provider.", to) %]
</p>
......
[% lh.maketext("This is an email challenge automatically sent to you by [_1].", app.name) %]
[% lh.maketext("User [_1], authenticated by Identity Provider [_2], has requested creation of test accounts for Service Provider [_3].", user, idp, sp) %]
[% lh.maketext("User [_1], authenticated by Identity Provider [_2], has requested creation of test accounts for Service Provider [_3].", user, idp.entityid, sp.entityid) %]
[% lh.maketext("The address [_1] is mentioned in the federation metadata as a contact for this Service Provider.", to) %]
[% lh.maketext("To complete the creation of test accounts, paste the following validation token in [_1]:", app.name) %]
......
[% WRAPPER index.tt2.html %]
<div class="row">
<div class="callout success">
[% lh.maketext("<strong>Success:</strong> your identity as administrator of the Service Provider <strong>[_1]</strong> has been validated!", entityid) %]
[% lh.maketext("<strong>Success:</strong> your identity as administrator of the Service Provider <strong>[_1]</strong> has been validated!", sp.entityid) %]
</div>
</div>
<h2>[% lh.maketext("Test accounts created") %]</h2>
<p>
[% lh.maketext("You can now use these test accounts to login at your <a href=\"[_1]\">service provider</a>.", url) %]
[% lh.maketext("To do so, select <strong>[_1]</strong> when choosing an identity provider.", idp) %]
[% lh.maketext("You can now use these test accounts to login at your <a href=\"[_1]\">service provider</a>.", sp.url) %]
[% lh.maketext("To do so, select <strong>[_1]</strong> when choosing an identity provider.", idp.name) %]
</p>
<p><a class="button" href="[% app.url %]?action=download_accounts&entityid=[% entityid %]&token=[% token %]&key=[% key %]">[% lh.maketext("Download in CSV format") %]</a></p>
<p><a class="button" href="[% app.url %]?action=download_accounts&entityid=[% sp.entityid %]&token=[% token %]&key=[% key %]">[% lh.maketext("Download in CSV format") %]</a></p>
<div class="accounts row">
[% FOREACH account IN accounts %]
......@@ -81,7 +81,7 @@
<div class="row">
<div class="callout warning">
<p>[% lh.maketext("Note that these test accounts will automatically expire in [_1] days and that they can only be used to test federated login to your service provider <strong>[_2]</strong>.", days, entityid) %]</p>
<p>[% lh.maketext("Note that these test accounts will automatically expire in [_1] days and that they can only be used to test federated login to your service provider <strong>[_2]</strong>.", days, sp.entityid) %]</p>
</div>
</div>
......
......@@ -2,18 +2,18 @@
<div class="row">
<div class="small-12 columns">
<p class="callout alert-callout-border success text-center">
[% lh.maketext("<strong>Success:</strong> your identity as administrator of the Service Provider <strong>[_1]</strong> has been validated!", entityid) %]
[% lh.maketext("<strong>Success:</strong> your identity as administrator of the Service Provider <strong>[_1]</strong> has been validated!", sp.entityid) %]
</p>
</div>
</div>
<h2>[% lh.maketext("Test accounts created") %]</h2>
<p>
[% lh.maketext("You can now use these test accounts to login at your <a href=\"[_1]\">service provider</a>.", url) %]
[% lh.maketext("To do so, select <strong>[_1]</strong> when choosing an identity provider.", idp) %]
[% lh.maketext("You can now use these test accounts to login at your <a href=\"[_1]\">service provider</a>.", sp.url) %]
[% lh.maketext("To do so, select <strong>[_1]</strong> when choosing an identity provider.", idp.name) %]
</p>
<p><a class="button" href="[% app.url %]?action=download_accounts&entityid=[% entityid %]&token=[% token %]&key=[% key %]">[% lh.maketext("Download in CSV format") %]</a></p>
<p><a class="button" href="[% app.url %]?action=download_accounts&entityid=[% sp.entityid %]&token=[% token %]&key=[% key %]">[% lh.maketext("Download in CSV format") %]</a></p>
<div class="accounts row">
[% FOREACH account IN accounts %]
......@@ -85,7 +85,7 @@
<div class="row">
<div class="callout alert-callout-border warning">
<p>[% lh.maketext("Note that these test accounts will automatically expire in [_1] days and that they can only be used to test federated login to your service provider <strong>[_2]</strong>.", days, entityid) %]</p>
<p>[% lh.maketext("Note that these test accounts will automatically expire in [_1] days and that they can only be used to test federated login to your service provider <strong>[_2]</strong>.", days, sp.entityid) %]</p>
</div>
</div>
......
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