From 38251de263956a5df50f788f6017aa0848fe800c Mon Sep 17 00:00:00 2001 From: ifac0 Date: Thu, 6 Oct 2016 23:32:01 -0300 Subject: [PATCH] correção do urls e atualização do template #58 --- core/templates/registration/passwor_reset_confirm.html | 74 +++++++++++++++++++++++++++++++++----------------------------------------- core/urls.py | 2 +- 2 files changed, 34 insertions(+), 42 deletions(-) diff --git a/core/templates/registration/passwor_reset_confirm.html b/core/templates/registration/passwor_reset_confirm.html index a8e2d8c..7abb6df 100644 --- a/core/templates/registration/passwor_reset_confirm.html +++ b/core/templates/registration/passwor_reset_confirm.html @@ -1,48 +1,40 @@ {% extends "index.html" %} {% load i18n static %} -{% block content%} + {% block content%}
-
-
-
-
-
- logo amadeus -
-
-
-
-
-
- - - {% if validlink %} -

Nova Senha

-
- {% csrf_token %} - {{ form.new_password1.erros }} - - {form.new_password1} - - {{ form.new_password2.erros }} - - {form.new_password2} - - - -
- - {% else %} -

- O link de redefinição de senha está inválido, possivelmente porque ele já foi utilizado. - Por favor, solicite uma nova redefinição de senha. -

- {% endif %} - -
+
+
+
+
+
+ logo amadeus +
-
+
+
+
+
+ + + + {% if validlink %} + +

{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}

+ +
{% csrf_token %} + {{ form.new_password1.errors }} +

{{ form.new_password1 }}

+ {{ form.new_password2.errors }} +

{{ form.new_password2 }}

+

+
+ + {% else %} + +

{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}

+ + {% endif %} -{% endblock content %} + {% endblock %} diff --git a/core/urls.py b/core/urls.py index 7b1f65b..b6559a7 100644 --- a/core/urls.py +++ b/core/urls.py @@ -21,7 +21,7 @@ urlpatterns = [ url(r'^reset/done/$', password_reset_done, {'template_name':'registration/passwor_reset_done.html'}), url(r'^reset/(?P[0-9A-Za-z]+)/(?P.+)/$', password_reset_confirm, {'template_name':'registration/passwor_reset_confirm.html', - 'post_reset_redirect' : 'done/'}, + 'post_reset_redirect' : '/done/'}, name='password_reset_confirm'), url(r'^done/$', password_reset_complete,{'template_name':'registration/passwor_reset_complete.html'}), ] -- libgit2 0.21.2