Commit 22f5c7c2 authored by Michal Čihař's avatar Michal Čihař

Drop no longer used reset views

parent 0c28fbf7
......@@ -19,39 +19,12 @@
#
from django.conf.urls import patterns, url, include
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth import views as auth_views
from accounts.views import RegistrationTemplateView
urlpatterns = patterns(
'',
url(
r'^password/reset/$',
auth_views.password_reset,
{'extra_context': {'title': _('Password reset')}},
name='auth_password_reset'
),
url(
r'^password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
auth_views.password_reset_confirm,
{'extra_context': {'title': _('Password reset')}},
name='auth_password_reset_confirm'
),
url(
r'^password/reset/complete/$',
auth_views.password_reset_complete,
{'extra_context': {'title': _('Password reset')}},
name='auth_password_reset_complete'
),
url(
r'^password/reset/done/$',
auth_views.password_reset_done,
{'extra_context': {'title': _('Password reset')}},
name='auth_password_reset_done'
),
url(
r'^email-sent/$',
RegistrationTemplateView.as_view(
......
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<p>{% trans "Your password has been set. You may go ahead and log in now." %}</p>
<p><a href="{{ login_url }}">{% trans 'Log in' %}</a></p>
{% endblock %}
{% extends "base.html" %}
{% load i18n %}
{% block content %}
{% if validlink %}
<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
<form action="" method="post">{% csrf_token %}
<table>
{{ form.as_table }}
</table>
<input type="submit" value="{% trans 'Change my password' %}" class="button" />
</form>
{% else %}
<p>{% trans "The password reset link is invalid, possibly because it has already been used. Please request a new password reset." %}</p>
{% endif %}
{% endblock %}
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<p>{% trans "We've e-mailed you instructions for setting your password to the e-mail address you submitted. You should be receiving it shortly." %}</p>
{% endblock %}
{% load i18n %}{% load url from future %}{% autoescape off %}
{% blocktrans %}You're receiving this e-mail 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 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %}
{% endblock %}
{% trans "Your username, in case you've forgotten:" %} {{ user.username }}
{% trans "Thanks for using our site!" %}
{% blocktrans %}The {{ site_name }} team{% endblocktrans %}
{% endautoescape %}
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %}</p>
<form action="" method="post">{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Reset my password' %}" class="button" />
</form>
{% endblock %}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment