module StrongPasswordField

Constants

VERSION

Public Class Methods

included(base) click to toggle source
# File lib/strong_password_field.rb, line 6
def self.included(base)
  base.send :include, InstanceMethods
  base.extend ClassMethods

  base.class_attribute :spf_password_field
  base.class_attribute :strategy
  base.class_attribute :minimal_strength
  # available security levels are: [:worst, :bad, :weak, :good, :strong]
  base.class_attribute :spf_options

  base.validate :strong_password_validate
end