app/controllers/devise/unlocks_controller.rb in devise-2.2.3 vs app/controllers/devise/unlocks_controller.rb in devise-2.2.4
- old
+ new
@@ -31,14 +31,14 @@
protected
# The path used after sending unlock password instructions
def after_sending_unlock_instructions_path_for(resource)
- new_session_path(resource)
+ new_session_path(resource) if is_navigational_format?
end
# The path used after unlocking the resource
def after_unlock_path_for(resource)
- new_session_path(resource)
+ new_session_path(resource) if is_navigational_format?
end
end