diff --git a/core/templates/core/password_change_done.html b/core/templates/core/password_change_done.html index 6f3636a8..f3fa2d2a 100644 --- a/core/templates/core/password_change_done.html +++ b/core/templates/core/password_change_done.html @@ -2,10 +2,11 @@ {% block content %} -You successfully changed your password! {% if form.errors %}
Your passwords didn't match. Please try again.
+{% else %} +You successfully changed your password! {% endif %} {% endblock %} diff --git a/core/templates/core/password_reset.html b/core/templates/core/password_reset.html new file mode 100644 index 00000000..16f7591c --- /dev/null +++ b/core/templates/core/password_reset.html @@ -0,0 +1,9 @@ +{% extends "core/base.html" %} + +{% block content %} + +{% endblock %} diff --git a/core/templates/core/password_reset_complete.html b/core/templates/core/password_reset_complete.html new file mode 100644 index 00000000..c524fdbe --- /dev/null +++ b/core/templates/core/password_reset_complete.html @@ -0,0 +1,8 @@ +{% extends "core/base.html" %} + +{% block content %} +You successfully reset your password!
+Login +{% endblock %} + + diff --git a/core/templates/core/password_reset_confirm.html b/core/templates/core/password_reset_confirm.html new file mode 100644 index 00000000..07b667b6 --- /dev/null +++ b/core/templates/core/password_reset_confirm.html @@ -0,0 +1,10 @@ +{% extends "core/base.html" %} + +{% block content %} + +{% endblock %} + diff --git a/core/templates/core/password_reset_email.html b/core/templates/core/password_reset_email.html new file mode 100644 index 00000000..0f3b0823 --- /dev/null +++ b/core/templates/core/password_reset_email.html @@ -0,0 +1,15 @@ +{% load i18n %}{% autoescape off %} +{% blocktrans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %} + +{% trans "Please go to the following page and choose a new password:" %} +{% block reset_link %} +{{ protocol }}://{{ domain }}{% url 'core:password_reset_confirm' uidb64=uid token=token %} +{% endblock %} +{% trans "Your username, in case you've forgotten:" %} {{ user.get_username }} + +{% trans "Thanks for using our site!" %} + +{% blocktrans %}The {{ site_name }} team{% endblocktrans %} + +{% endautoescape %} + diff --git a/core/urls.py b/core/urls.py index 94b4507b..4f3b2186 100644 --- a/core/urls.py +++ b/core/urls.py @@ -3,15 +3,15 @@ from django.conf.urls import url, include from core.views import * urlpatterns = [ - url('^', include('django.contrib.auth.urls')), + #url('^', include('django.contrib.auth.urls')), url(r'^$', index, name='index'), - url(r'^login$', login, name='login'), - url(r'^logout$', logout, name='logout'), - url(r'^password_change$', password_change, name='password_change'), + url(r'^login/$', login, name='login'), + url(r'^logout/$', logout, name='logout'), + url(r'^password_change/$', password_change, name='password_change'), url(r'^password_change/done$', password_change_done, name='password_change_done'), - url(r'^password_reset$', password_reset, name='password_reset'), + url(r'^password_reset/$', password_reset, name='password_reset'), url(r'^password_reset/done$', password_reset_done, name='password_reset_done'), url(r'^reset/(?P