summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorIsrael Madueme <purelogiq@gmail.com>2018-03-29 19:42:05 +0200
committerDylan William Hardison <dylan@hardison.net>2018-03-29 19:42:05 +0200
commit3890e90e2fa0efd0e31c519814c7169f34b52a4e (patch)
tree8d137b60fc000e050aa2aa469995d4e7484f1016 /template
parent8f610ecde482b38120f56fb54a83974cc335120d (diff)
downloadbugzilla-3890e90e2fa0efd0e31c519814c7169f34b52a4e.tar.gz
bugzilla-3890e90e2fa0efd0e31c519814c7169f34b52a4e.tar.xz
Bug 1200695 - API-key-creation emails should reflect if the action was a result of auth delegation
Diffstat (limited to 'template')
-rw-r--r--template/en/default/email/new-api-key.txt.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/template/en/default/email/new-api-key.txt.tmpl b/template/en/default/email/new-api-key.txt.tmpl
index 4a03fe800..aed904def 100644
--- a/template/en/default/email/new-api-key.txt.tmpl
+++ b/template/en/default/email/new-api-key.txt.tmpl
@@ -26,9 +26,17 @@ or update the key at the following URL:
[%+ urlbase %]userprefs.cgi?tab=apikey
+[% IF new_key.app_id == Param('mozreview_app_id') %]
+This API key was automatically created by MozReview. If you did not recently log in to
+MozReview, please disable the key at the above URL, and change your password immediately.
+[% ELSIF new_key.app_id == Param('phabricator_app_id') %]
+This API key was automatically created by Mozilla's Phabricator instance. If you did not recently
+log in to Phabricator, please disable the key at the above URL, and change your password immediately.
+[% ELSE %]
IMPORTANT: If you did not request a new key, your [% terms.Bugzilla %] account
may have been compromised. In this case, please disable the key at the above
URL, and change your password immediately.
+[% END %]
For security reasons, we have not included your new key in this e-mail.