diff options
author | Johan Lundberg <lundberg@nordu.net> | 2013-03-04 13:06:26 +0100 |
---|---|---|
committer | Johan Lundberg <lundberg@nordu.net> | 2013-03-04 13:06:26 +0100 |
commit | fecef30ecc2dc31b81da1b2e82f5bc69088e525d (patch) | |
tree | 023fab5517681f7f91e6682481ccb09186edb960 | |
parent | d6bf5e609ce1f2a8efeb762bd073b0c0839f158c (diff) |
-rw-r--r-- | forms.py (renamed from models.py) | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 \ |