code: def validate(self, password, user=None):
          
          user_inputs = []
          if user is not None:
              for attribute in self.user_attributes:
                  if hasattr(user, attribute):
                      user_inputs.append(getattr(user, attribute))
  
          results = zxcvbn(password, user_inputs=user_inputs)
          if results.get('score', 0) < self.min_score:
              feedback = ', '.join(
                  results.get('feedback', {}).get('suggestions', []))
              raise ValidationError(_(feedback), code=self.code, params={})
docs: Validate method, run zxcvbn and check score.