Added link to change a user's password.

This commit is contained in:
2011-05-16 13:42:50 +01:00
parent 43a672574d
commit 46b4b9a041
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
from django.conf.urls.defaults import *
from django.core.urlresolvers import reverse
from django.contrib.auth.views import password_change, password_change_done
from sso import views
@@ -14,6 +15,7 @@ urlpatterns = patterns('',
(r'^profile/apipassword/', views.set_apipasswd),
(r'^profile/refresh/', views.refresh_access),
(r'^profile/refresh/(?P<userid>\d+)/', views.refresh_access),
(r'^profile/change/password/$', password_change),
(r'^users/(?P<username>.*)/$', views.user_view),
(r'^users/$', views.user_lookup),
)

View File

@@ -48,7 +48,8 @@ function refresh_apikey(key) {
</p>
<p>
<div class="skill_controls">
<a href="{% url sso.views.refresh_access %}">Update Access</a><br/>
<a href="{% url sso.views.refresh_access %}">Update Access</a>
<a href="{% url django.contrib.auth.views.password_change %}">Change Your Password</a><br/>
</div>
</p>