summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2011-05-10 12:51:43 +0200
committerJohan Lundberg <lundberg@nordu.net>2011-05-10 12:51:43 +0200
commit237f78b14cd97cbec53c0dda801dc14921d4a0b6 (patch)
tree603d5d8ec104f84ba1b887154941b8fbdc90434d
parent9f94c33228caeeb864a44242431f29c24bd29c06 (diff)
Minor fixes.
-rw-r--r--templates/changepw/index.html4
-rw-r--r--views.py6
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>
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.