diff options
-rw-r--r-- | templates/changepw/index.html | 4 | ||||
-rw-r--r-- | 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 @@ </table> <p> - Available actions: - <a href="{% url changepw %}">Change password</a> + Available actions:<br /> + <a href="{% url changepw %}">Change password</a><br /> <a href="{% url resetpw %}">Reset password</a> </p> @@ -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. |