From 68db2df65b2a9b74af61ba5a0b00b598c70c8958 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Thu, 23 May 2024 15:19:47 +0200 Subject: [PATCH] more consistency in template names --- lib/AccessCheck/App/SendChallenge.pm | 4 ++-- templates/Makefile.am | 4 ++-- ..._authentication_token.tt2.html => send_challenge.html.tt2} | 0 ...nd_authentication_token.tt2.txt => send_challenge.txt.tt2} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename templates/mail/{send_authentication_token.tt2.html => send_challenge.html.tt2} (100%) rename templates/mail/{send_authentication_token.tt2.txt => send_challenge.txt.tt2} (100%) diff --git a/lib/AccessCheck/App/SendChallenge.pm b/lib/AccessCheck/App/SendChallenge.pm index 1803516..073f36b 100644 --- a/lib/AccessCheck/App/SendChallenge.pm +++ b/lib/AccessCheck/App/SendChallenge.pm @@ -124,8 +124,8 @@ sub run { }; my $text_content; my $html_content; - $tt2->process('send_authentication_token.tt2.txt', $data, \$text_content); - $tt2->process('send_authentication_token.tt2.html', $data, \$html_content); + $tt2->process('send_challenge.txt.tt2', $data, \$text_content); + $tt2->process('send_challenge.html.tt2', $data, \$html_content); my $message = Email::MIME->create( header_str => [ diff --git a/templates/Makefile.am b/templates/Makefile.am index 6415990..9cfafa1 100644 --- a/templates/Makefile.am +++ b/templates/Makefile.am @@ -12,8 +12,8 @@ nobase_apptemplates_DATA = \ accounts/student2.tt2 \ accounts/teacher1.tt2 \ accounts/teacher2.tt2 \ - mail/send_authentication_token.tt2.txt \ - mail/send_authentication_token.tt2.html \ + mail/send_challenge.txt.tt2 \ + mail/send_challenge.html.tt2 \ other/accounts.csv.tt2 \ other/accounts.php.tt2 \ web/edugain/errors.html.tt2 \ diff --git a/templates/mail/send_authentication_token.tt2.html b/templates/mail/send_challenge.html.tt2 similarity index 100% rename from templates/mail/send_authentication_token.tt2.html rename to templates/mail/send_challenge.html.tt2 diff --git a/templates/mail/send_authentication_token.tt2.txt b/templates/mail/send_challenge.txt.tt2 similarity index 100% rename from templates/mail/send_authentication_token.tt2.txt rename to templates/mail/send_challenge.txt.tt2 -- GitLab