summaryrefslogtreecommitdiff
path: root/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'views.py')
-rw-r--r--views.py6
1 files changed, 3 insertions, 3 deletions
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.