Module: Spree::PasswordPolicy
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/spree/password_policy.rb
Overview
Password policy for the default auth models (Customer, AdminUser).
The policy itself lives in #password_validator — by default PasswordLengthValidator. Swap that to replace it wholesale.
Validation runs only while a password is actually being set, so raising the floor on an existing install invalidates no stored digest — short legacy passwords keep working until their owner next changes them.