Skip to content

Commit

Permalink
password reset function
Browse files Browse the repository at this point in the history
  • Loading branch information
annttu committed Jan 8, 2016
1 parent 1292514 commit ab548b2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions DNSManager/manager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'manager',
'password_reset',
)

MIDDLEWARE_CLASSES = (
Expand Down
2 changes: 2 additions & 0 deletions DNSManager/manager/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@
url(r'^dyndns/add/(?P<name>[a-zA-Z0-9\.\-]+)$', "manager.views.add_dyndns", name="add_dyndns"),
url(r'^api/update/(?P<secret>[a-zA-Z0-9]+)$', 'manager.views.update', name="api_update"),
url(r'^admin/', include(admin.site.urls)),
url(r'^user/reset_password/', include('password_reset.urls')),
)

10 changes: 10 additions & 0 deletions DNSManager/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@
</div>
</div>
</nav>
{% else %}
<nav class="navbar navbar-default">
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<div class="container">
<ul class="nav navbar-nav navbar-right">
<li><a href="{% url "password_reset_recover" %}">Reset password</a></li>
</ul>
</div>
</div>
</nav>
{% endif %}
<div class="container">

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Django==1.7.5
dnspython3==1.12.0
psycopg2==2.6
django-password-reset==0.8.1

0 comments on commit ab548b2

Please sign in to comment.