]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1200695 - API-key-creation emails should reflect if the action was a result of...
authorIsrael Madueme <purelogiq@gmail.com>
Thu, 29 Mar 2018 17:42:05 +0000 (13:42 -0400)
committerDylan William Hardison <dylan@hardison.net>
Thu, 29 Mar 2018 17:42:05 +0000 (13:42 -0400)
template/en/default/email/new-api-key.txt.tmpl

index 4a03fe80096b5424505b8e40f0d0a86f3c639d46..aed904def96f8287801fd939f866e97795d199af 100644 (file)
@@ -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.