raiseforms.ValidationError("Le mot de passe doit contenir au moins une majuscule, une minuscule et un chiffre")
returnvalue
classPassForm(forms.Form):
passwd1=forms.CharField(label=u'Nouveau mot de passe',max_length=255,validators=[MinLengthValidator(8),validate_password],widget=forms.PasswordInput)
passwd2=forms.CharField(label=u'Saisir à nouveau le mot de passe',max_length=255,validators=[MinLengthValidator(8),validate_password],widget=forms.PasswordInput)
passwd1=forms.CharField(label=u'Nouveau mot de passe',max_length=255,validators=[MinLengthValidator(8)],widget=forms.PasswordInput)
passwd2=forms.CharField(label=u'Saisir à nouveau le mot de passe',max_length=255,validators=[MinLengthValidator(8)],widget=forms.PasswordInput)
classUserCreationForm(forms.ModelForm):
"""A form for creating new users. Includes all the required