module Devise::Models::PasswordHasRequiredContent::ClassMethods
Public Instance Methods
config()
click to toggle source
rubocop:disable Metrics/MethodLength
# File lib/devise/secure_password/models/password_has_required_content.rb, line 135 def config { REQUIRED_CHAR_COUNTS: { length: { min: Devise.password_length.min, max: Devise.password_length.max }, uppercase: { min: password_required_uppercase_count, max: LENGTH_MAX }, lowercase: { min: password_required_lowercase_count, max: LENGTH_MAX }, number: { min: password_required_number_count, max: LENGTH_MAX }, special: { min: password_required_special_character_count, max: LENGTH_MAX }, unknown: { min: 0, max: 0 } } } end