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

partial revert

parent de657a1e
No related branches found
No related tags found
No related merge requests found
......@@ -193,8 +193,10 @@ sub respond {
REMOTE_HOST => $ENV{REMOTE_HOST},
REMOTE_ADDR => $ENV{REMOTE_ADDR},
},
app_name => $self->{configuration}->{app_name},
app_url => $self->{configuration}->{app_url},
conf => {
app_name => $self->{configuration}->{app_name},
app_url => $self->{configuration}->{app_url},
},
from => $self->{configuration}->{notice_from},
to => $self->{configuration}->{admin_email},
errors => $self->{out}->{errors}
......@@ -424,10 +426,12 @@ sub req_generate_token {
REMOTE_HOST => $ENV{REMOTE_HOST},
REMOTE_ADDR => $ENV{REMOTE_ADDR},
},
app_name => $self->{configuration}->{app_name},
app_url => $self->{configuration}->{app_url},
conf => {
app_name => $self->{configuration}->{app_name},
app_url => $self->{configuration}->{app_url},
support_email => $self->{configuration}->{support_email},
},
from => $self->{configuration}->{notice_from},
support_email => $self->{configuration}->{support_email},
to => $self->{in}->{email_address},
sp_entityid => $self->{in}->{sp_entityid},
authentication_token => $authentication_token->get('token'),
......
From: [% app_name %] <[% from %]>
From: [% conf.app_name %] <[% from %]>
To: [% to %]
Subject: [% app_name %] - Test accounts request
Subject: [% conf.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 [% sp_entityid %].
This is an email challenge automatically sent to you by [% conf.app_name %]. Somebody with IP address [% env.REMOTE_ADDR %] has requested to create test accounts for eduGAIN Service Provider with entityID [% sp_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.
To complete the creation of test accounts, paste the following validation token in the [% conf.app_name %] web form.
Validation token: [% authentication_token %]
[% app_name %]: [% app_url %]
[% conf.app_name %]: [% conf.app_url %]
If the creation of test accounts was not initiated by you or a fellow administrator for the above Service Provider, please forward this email and contact [% conf.support_email %] to inform them about a potential abuse of the [% app_name %] service.
If the creation of test accounts was not initiated by you or a fellow administrator for the above Service Provider, please forward this email and contact [% conf.support_email %] to inform them about a potential abuse of the [% conf.app_name %] service.
Best Regards
[% app_name %] Bot
[% conf.app_name %] Bot
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