Module: Authlogic::ActsAsAuthentic::Password::Methods
- Defined in:
- lib/authlogic/acts_as_authentic/password.rb
Overview
The methods related to the password field.
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/authlogic/acts_as_authentic/password.rb', line 197 def self.included(klass) return if klass.crypted_password_field.nil? klass.class_eval do include InstanceMethods if validate_password_field validates_length_of :password, if require_password_confirmation validates_confirmation_of :password, validates_length_of :password_confirmation, end end after_save :reset_password_changed end end |