Class: PwnedValidator Deprecated

Inherits:
NotPwnedValidator show all
Defined in:
lib/pwned/not_pwned_validator.rb

Overview

Deprecated.

use the NotPwnedValidator instead.

The version 1.1.0 validator that uses `pwned` in the validate method. This has been updated to the above `not_pwned` validator to be clearer what is being validated.

This class is being maintained for backwards compatitibility but will be removed

Examples:

Validate a password on a User model with the default options.

class User < ApplicationRecord
  validates :password, pwned: true
end

Since:

  • 1.1.0

Constant Summary

Constants inherited from NotPwnedValidator

NotPwnedValidator::DEFAULT_ON_ERROR, NotPwnedValidator::DEFAULT_THRESHOLD

Method Summary

Methods inherited from NotPwnedValidator

#validate_each