code: def clean_password(self, password, user=None):
          
          min_length = app_settings.PASSWORD_MIN_LENGTH
          if min_length and len(password) < min_length:
              raise forms.ValidationError(_("Password must be a minimum of {0} "
                                            "characters.").format(min_length))
          validate_password(password, user)
          return password
docs: Validates a password. You can hook into this if you want to
          restric the allowed password choices.