From 8a3606259e99bf1e05778890cf4dcea7c206db75 Mon Sep 17 00:00:00 2001
From: Mikkel Hoegh <mikkel@hoegh.org>
Date: Mon, 7 Jun 2010 09:08:49 +0200
Subject: [PATCH] Use field-specific validation.

---
 password_required/forms.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/password_required/forms.py b/password_required/forms.py
index 1a9383b..4eabb7b 100644
--- a/password_required/forms.py
+++ b/password_required/forms.py
@@ -23,7 +23,7 @@ class AuthenticationForm(forms.Form):
         super(AuthenticationForm, self).__init__(*args, **kwargs)
 
 
-    def clean(self):
+    def clean_password(self):
         """
         Validate that the password entered was correct.
         """