From 237f78b14cd97cbec53c0dda801dc14921d4a0b6 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Tue, 10 May 2011 12:51:43 +0200 Subject: Minor fixes. --- templates/changepw/index.html | 4 ++-- views.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/changepw/index.html b/templates/changepw/index.html index 55badd8..ef9a95b 100644 --- a/templates/changepw/index.html +++ b/templates/changepw/index.html @@ -16,8 +16,8 @@

- Available actions: - Change password + Available actions:
+ Change password
Reset password

diff --git a/views.py b/views.py index 564a3f8..aa3b00c 100644 --- a/views.py +++ b/views.py @@ -3,13 +3,13 @@ from apps.changepw.models import ChangePasswordForm from django.shortcuts import render_to_response from django.template import RequestContext -def _change_password(user, new_password): +def _change_password(request, user, new_password): ''' Use this to call your change password function. ''' return 0 -def _reset_password(user, new_password): +def _reset_password(request, user, new_password): ''' Use this to call your reset password function. ''' @@ -68,7 +68,7 @@ def change_password(request): context_instance=RequestContext(request)) @login_required(login_url='/sso/accounts/login/') -def reset_password(request, func): +def reset_password(request): ''' Resets password for the authenticated user to a random string. The function that actually sets the new password has to be provided as func. -- cgit v1.1