Method: Devise::Models::Recoverable#clear_reset_password_token?
- Defined in:
- lib/devise/models/recoverable.rb
permalink #clear_reset_password_token? ⇒ Boolean (protected)
102 103 104 105 106 107 108 109 |
# File 'lib/devise/models/recoverable.rb', line 102 def clear_reset_password_token? encrypted_password_changed = devise_respond_to_and_will_save_change_to_attribute?(:encrypted_password) authentication_keys_changed = self.class.authentication_keys.any? do |attribute| devise_respond_to_and_will_save_change_to_attribute?(attribute) end authentication_keys_changed || encrypted_password_changed end |