From 3890e90e2fa0efd0e31c519814c7169f34b52a4e Mon Sep 17 00:00:00 2001 From: Israel Madueme Date: Thu, 29 Mar 2018 13:42:05 -0400 Subject: Bug 1200695 - API-key-creation emails should reflect if the action was a result of auth delegation --- template/en/default/email/new-api-key.txt.tmpl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'template') 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. -- cgit v1.2.3-24-g4f1b