Module: CommonPassword::Model
- Extended by:
- ActiveSupport::Concern
- Included in:
- Devise::Models::PasswordBreachAlert
- Defined in:
- lib/common_password/model.rb
Overview
The CommonPassword module adds a new validation for Devise Models. No modifications to routes or controllers needed. Simply add :uncommon_password to the list of included modules in your devise module, and all new registrations will be blocked if they use a common password.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#password_common? ⇒ Boolean
18 19 20 21 22 |
# File 'lib/common_password/model.rb', line 18 def password_common? @password_common_index = nil password_common_top.present? end |