You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Send email when a 2fa method is added or removed (#6930)
* initial working 2fa emails
* only look for the request when we know we have work
* just send the 2fa emails directly from the view
also add tests and make the linter happy
* s/2fa/two_factor/
Co-authored-by: Ernest W. Durbin III <[email protected]>
# Licensed under the Apache License, Version 2.0 (the "License");
3
+
# you may not use this file except in compliance with the License.
4
+
# You may obtain a copy of the License at
5
+
#
6
+
# http://www.apache.org/licenses/LICENSE-2.0
7
+
#
8
+
# Unless required by applicable law or agreed to in writing, software
9
+
# distributed under the License is distributed on an "AS IS" BASIS,
10
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+
# See the License for the specific language governing permissions and
12
+
# limitations under the License.
13
+
-#}
14
+
{% extends "email/_base/body.html" %}
15
+
16
+
17
+
{% block content %}
18
+
<p>{% trans method=method, username=username %}Someone, perhaps you, has added a {{ method }} two-factor authentication method to your PyPI account <strong>{{ username }}</strong>.{% endtrans %}</p>
19
+
20
+
<p>{% trans href='mailto:[email protected]', email_address='[email protected]' %}If you did not make this change, you can email <ahref="{{ href }}">{{ email_address }}</a> to communicate with the PyPI administrators.{% endtrans %}</p>
# Licensed under the Apache License, Version 2.0 (the "License");
3
+
# you may not use this file except in compliance with the License.
4
+
# You may obtain a copy of the License at
5
+
#
6
+
# http://www.apache.org/licenses/LICENSE-2.0
7
+
#
8
+
# Unless required by applicable law or agreed to in writing, software
9
+
# distributed under the License is distributed on an "AS IS" BASIS,
10
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+
# See the License for the specific language governing permissions and
12
+
# limitations under the License.
13
+
-#}
14
+
{% extends "email/_base/body.html" %}
15
+
16
+
17
+
{% block content %}
18
+
<p>{% trans method=method, username=username %}Someone, perhaps you, has removed a {{ method }} two-factor authentication method from your PyPI account <strong>{{ username }}</strong>.{% endtrans %}</p>
19
+
20
+
<p>{% trans href='mailto:[email protected]', email_address='[email protected]' %}If you did not make this change, you can email <ahref="{{ href }}">{{ email_address }}</a> to communicate with the PyPI administrators.{% endtrans %}</p>
0 commit comments