From: dklawren
Date: Mon, 19 Aug 2019 21:02:32 +0000 (-0400)
Subject: Bug 1575005 - Do not send email announcement upon automated creation of API keys...
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b08c6fdf33d3d62d1f90375928afbb6cfb25bbb;p=thirdparty%2Fbugzilla.git
Bug 1575005 - Do not send email announcement upon automated creation of API keys by auth.cgi
---
diff --git a/auth.cgi b/auth.cgi
index 1f80711d4..12f22d720 100755
--- a/auth.cgi
+++ b/auth.cgi
@@ -92,13 +92,6 @@ if ($confirmed || $skip_confirmation) {
= Bugzilla::User::APIKey->create({
user_id => $user->id, description => $description, app_id => $app_id,
});
- my $template = Bugzilla->template_inner($user->setting('lang'));
- my $vars = {user => $user, new_key => $api_key};
- my $message;
- $template->process('email/new-api-key.txt.tmpl', $vars, \$message)
- or ThrowTemplateError($template->error());
-
- MessageToMTA($message);
}
my $ua = LWP::UserAgent->new();
diff --git a/template/en/default/account/auth/delegation.html.tmpl b/template/en/default/account/auth/delegation.html.tmpl
index f27045ef6..db7e0ae16 100644
--- a/template/en/default/account/auth/delegation.html.tmpl
+++ b/template/en/default/account/auth/delegation.html.tmpl
@@ -10,16 +10,19 @@
title = "Auth Delegation Request" %]
[% title FILTER html %]
-
- A third-party website ([% callback_base FILTER html %])
- would like to have complete access to your [% terms.Bugzilla %] account.
-
+
+A third-party website ([% callback_base FILTER html %])
+ would like to have complete access to your [% terms.Bugzilla %] account.
The description of the site reads:
[% description FILTER html %]
-
-
+
+
+A new [% terms.Bugzilla %] API key[% IF description %], with the description
+ '[% description FILTER truncate(10) FILTER html %]'[% END %] will also be created. You can
+ view or update the key in
+ your preferences.
Do you want this website to have complete access to your [% terms.Bugzilla %]
account?