app/controllers/devise/unlocks_controller.rb in devise-1.5.4 vs app/controllers/devise/unlocks_controller.rb in devise-2.0.0.rc

- old
+ new

@@ -23,11 +23,10 @@ def show self.resource = resource_class.unlock_access_by_token(params[:unlock_token]) if resource.errors.empty? set_flash_message :notice, :unlocked if is_navigational_format? - sign_in(resource_name, resource) - respond_with_navigational(resource){ redirect_to after_sign_in_path_for(resource) } + respond_with_navigational(resource){ redirect_to new_session_path(resource) } else respond_with_navigational(resource.errors, :status => :unprocessable_entity){ render_with_scope :new } end end end