summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2013-03-04 13:06:26 +0100
committerJohan Lundberg <lundberg@nordu.net>2013-03-04 13:06:26 +0100
commitfecef30ecc2dc31b81da1b2e82f5bc69088e525d (patch)
tree023fab5517681f7f91e6682481ccb09186edb960
parentd6bf5e609ce1f2a8efeb762bd073b0c0839f158c (diff)
Added a TODO comment.HEADmaster
-rw-r--r--forms.py (renamed from models.py)1
1 files changed, 1 insertions, 0 deletions
diff --git a/models.py b/forms.py
index 0451702..7db47a6 100644
--- a/models.py
+++ b/forms.py
@@ -27,6 +27,7 @@ least 10 characters long. Currently %d characters.' % len(new_password))
raise forms.ValidationError('You need at least one upper \
case letter and one lower case letter in your password.')
numbers = re.findall('\d', new_password)
+ # TODO: Update list of special characters, use \W.
specials = re.findall('[,.\[\]!@#$%^&*?_\(\)-]', new_password)
if (len(numbers)+len(specials)) < 3:
raise forms.ValidationError('You need at least three numbers or \