Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/controllers/passwords_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ def new
render html: "", layout: "application"
end

def edit
render html: "", layout: "application"
end

def create
self.resource =
resource_class.find_or_initialize_with_errors(resource_class.reset_password_keys, resource_params, :not_found)
Expand Down
22 changes: 22 additions & 0 deletions test/controllers/passwords_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# frozen_string_literal: true
require "test_helper"

class PasswordsControllerTest < ActionDispatch::IntegrationTest
it "serves the app shell for the forgot password page" do
create(:root_site)

get new_user_password_path

assert_response :success
assert_select "form", false
end

it "serves the app shell for the reset password page instead of Devise's default form" do
create(:root_site)

get edit_user_password_path(reset_password_token: "sometoken")

assert_response :success
assert_select "form", false
end
end
Loading