diff options
Diffstat (limited to 'views.py')
-rw-r--r-- | views.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. |