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

fix template variable names

parent 406f6d54
Branches
Tags
No related merge requests found
......@@ -446,18 +446,17 @@ sub req_complete_challenge {
});
my $template = 'send_authentication_token.tt2.eml';
my $data = {
env => {
REMOTE_ADDR => $ENV{REMOTE_ADDR},
},
conf => {
app_name => $self->{configuration}->{app}->{name},
app_url => $self->{configuration}->{app}->{url},
app => {
name => $self->{configuration}->{app}->{name},
url => $self->{configuration}->{app}->{url},
support_email => $self->{configuration}->{app}->{support_email},
version => $self->{configuration}->{app}->{version},
},
from => $sender,
to => $recipient,
entityid => $self->{in}->{entityid},
token => $token->token(),
sourceip => $ENV{REMOTE_ADDR},
from => $sender,
to => $recipient,
entityid => $self->{in}->{entityid},
token => $token->token(),
};
unless ($tt2->process($template, $data, $handle)) {
......
......@@ -3,7 +3,7 @@ To: [% to %]
Subject: [% app.name %] - Test accounts request
Content-type: text/plain; charset=UTF-8; format=flowed
This is an email challenge automatically sent to you by [% app.name %]. Somebody with IP address [% env.REMOTE_ADDR %] has requested to create test accounts for eduGAIN Service Provider with entityID [% entityid %].
This is an email challenge automatically sent to you by [% app.name %]. Somebody with IP address [% sourceip %] has requested to create test accounts for eduGAIN Service Provider with entityID [% entityid %].
The address [% to %] is mentioned in the eduGAIN metadata as a contact for this Service Provider.
To complete the creation of test accounts, paste the following validation token in the [% app.name %] web form.
......
......@@ -3,9 +3,11 @@ To: [% to %]
Subject: [% app.name %] - Demande de comptes de test
Content-type: text/plain; charset=UTF-8; format=flowed
Ceci est un message envoyé automatiquement par l'application eduGAIN Access Check.
Quelqu'un avec l'adresse IP [% env.REMOTE_ADDR %] a demandé la création de comptes de test pour le service [% entityid %].
L'addresse [% to %] est mentionnée dans les métadonnées de la fédération eduGAIN comme contact pour ce service.
Ceci est un message envoyé automatiquement par l'application eduGAIN
Access Check. Quelqu'un avec l'adresse IP [% sourceip %] a demandé la
création de comptes de test pour le service [% entityid %]. L'addresse
[% to %] est mentionnée dans les métadonnées de la fédération eduGAIN
comme contact pour ce service.
Pour terminer la création de ces comptes de test, recopiez le code de
validation suivant dans l'application eduGAIN Access Check.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment