Projet

Général

Profil

0001-registration-special-case-activation-link-being-vali.patch

Frédéric Péters, 05 juillet 2018 14:07

Télécharger (3,1 ko)

Voir les différences:

Subject: [PATCH] registration: special case activation link being valid for 1
 day (#25075)

 .../templates/registration/activation_email.html      |  4 ++++
 .../templates/registration/activation_email.txt       |  4 +++-
 .../templates/registration/registration_complete.html | 11 ++++++++++-
 3 files changed, 17 insertions(+), 2 deletions(-)
src/authentic2/templates/registration/activation_email.html
11 11
      </p>
12 12
    {% endif %}
13 13

  
14
    {% if expiration_days > 1 %}
14 15
    <p>{% blocktrans %}This link is valid for {{ expiration_days }} days.{% endblocktrans %}</>
16
    {% else %}
17
    <p>{% blocktrans %}This link is valid for 24 hours.{% endblocktrans %}</>
18
    {% endif %}
15 19

  
16 20
    <p>{% blocktrans %}If you did not register on {{ site }}, ignore this email.{% endblocktrans %}</p>
17 21
  </body>
src/authentic2/templates/registration/activation_email.txt
8 8

  
9 9
  {{ registration_url }}
10 10

  
11
{% endblocktrans %}{% endif %}{% blocktrans %}Link is valid for {{ expiration_days }} days.{% endblocktrans %}
11
{% endblocktrans %}{% endif %}
12
{% if expiration_days > 1 %}{% blocktrans %}Link is valid for {{ expiration_days }} days.{% endblocktrans %}
13
{% else %}{% blocktrans %}Link is valid for 24 hours.{% endblocktrans %}{% endif %}
12 14

  
13 15
{% blocktrans %}If you did not register on {{ site }}, ignore this email.{% endblocktrans %}{% endautoescape %}
src/authentic2/templates/registration/registration_complete.html
9 9
  {% url "auth_homepage" as homepage_url %}
10 10
  {% blocktrans with email=request.session.registered_email %}
11 11
    <p>An email was sent to {{ email }}.</p>
12
  {% endblocktrans %}
13
  {% if account_activation_days > 1 %}
14
  {% blocktrans %}
12 15
    <p>Follow instruction in this email to continue your registration, this
13 16
    email will be valid during {{account_activation_days}} days.</p>
14
    <p><a href="{{ homepage_url }}">Back</a></p>
15 17
  {% endblocktrans %}
18
  {% else %}
19
  {% blocktrans %}
20
    <p>Follow instruction in this email to continue your registration, this
21
    email will be valid during 24 hours.</p>
22
  {% endblocktrans %}
23
  {% endif %}
24
  <p><a href="{{ homepage_url }}">{% trans "Back" %}</a></p>
16 25
{% endblock %}
17
-