Class: Devise::PasswordsWithPolicyController
- Inherits:
-
DeviseController
- Object
- DeviseController
- Devise::PasswordsWithPolicyController
- Defined in:
- app/controllers/devise/passwords_with_policy_controller.rb
Instance Method Summary collapse
Methods inherited from DeviseController
Instance Method Details
#edit ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/devise/passwords_with_policy_controller.rb', line 5 def edit self.resource = resource_class.new resource.errors.add(:base, "#{error_string_for_password_expired}.") render :edit end |
#update ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/devise/passwords_with_policy_controller.rb', line 11 def update if resource.update_with_password(password_params) prepare_for_redirect redirect_to stored_location_for(scope_name) || :root else clean_up_passwords(resource) render :edit end end |