cancel-token.txt.tmpl 3.29 KB
Newer Older
1 2 3
[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
  #
5 6
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
7
  #%]
8

9
From: [% Param('mailfrom') %]
10
To: [% emailaddress %]
11
Subject: [% PROCESS subject %]
12
X-Bugzilla-Type: admin
13

14
A request was canceled from [% remoteaddress %].
15

16 17
If you did not request this, it could be either an honest
mistake or someone attempting to break into your [% terms.Bugzilla %] account.
18

19
Take a look at the information below and forward this email
20
to [% Param('maintainer') %] if you suspect foul play.
21 22 23 24

            Token: [% token %]
       Token Type: [% tokentype %]
             User: [% emailaddress %]
25
       Issue Date: [% issuedate FILTER time("%Y-%m-%d %H:%M:%S %Z", timezone) %]
26
       Event Data: [% eventdata %]
27
Canceled Because: [% PROCESS cancelactionmessage %]
28

29
[% BLOCK subject %]
30
  [% IF tokentype == 'new_account' %]
31
    User account creation request canceled
32
  [% ELSIF tokentype == 'password' %]
33
    Password change request canceled
34
  [% ELSIF tokentype == 'emailnew' OR tokentype == 'emailold' %]
35
    Email change request canceled
36
  [% ELSE %]
37
    [% tokentype %] token canceled
38 39 40
  [% END %]
[% END %]

41 42 43
[% BLOCK cancelactionmessage %]
  [% IF    cancelaction == 'account_exists' %]
    Account [% email %] already exists.
44

45
  [% ELSIF cancelaction == 'email_change_canceled' %]
46 47
    The request to change the email address for
    the [% old_email %] account to [% new_email %] has
48
    been canceled.
49

50
  [% ELSIF cancelaction == 'email_change_canceled_reinstated' %]
51
    The request to change the email address for your account
52
    to [% new_email %] has been canceled. Your old account
53 54
    settings have been reinstated.

55
  [% ELSIF cancelaction == 'emailold_change_canceled' %]
56
    The request to change the email address for your account
57
    to [% new_email %] has been canceled.
58

59
  [% ELSIF cancelaction == 'password_change_canceled' %]
60 61
    You have requested cancellation.

62
  [% ELSIF cancelaction == 'account_creation_canceled' %]
63
    The creation of the user account [% emailaddress %]
64
    has been canceled.
65

66 67
  [% ELSIF cancelaction == 'user_logged_in' %]
    You have logged in.
68 69

  [% ELSIF cancelaction == 'wrong_token_for_changing_passwd' %]
70
    You have tried to use the token to change the password.
71 72

  [% ELSIF cancelaction == 'wrong_token_for_cancelling_email_change' %]
73
    You have tried to use the token to cancel the email address change.
74 75

  [% ELSIF cancelaction == 'wrong_token_for_confirming_email_change' %]
76
    You have tried to use the token to confirm the email address change.
77

78 79 80
  [% ELSIF cancelaction == 'wrong_token_for_creating_account' %]
    You have tried to use the token to create a user account.

81 82
  [% ELSE %]
    [%# Give sensible error if the cancel-token function is used incorrectly.
83 84
      #%]
    You are using [% terms.Bugzilla %]'s cancel-token function incorrectly. You
85 86 87
    passed in the string '[% cancelaction %]'. The correct use is to pass
    in a tag, and define that tag in the file cancel-token.txt.tmpl.

88
    If you are a [% terms.Bugzilla %] end-user seeing this message, please forward this
89 90 91
    email to [% Param('maintainer') %].
  [% END %]
[% END %]