Commit 27739ce0 authored by minahilnichols's avatar minahilnichols

Remove authenticate_user! override

parent 62b621f1
......@@ -26,12 +26,6 @@ module Registrations
private
def authenticate_user!
return if current_user
redirect_to new_trial_registration_path, alert: I18n.t('devise.failure.unauthenticated')
end
def permitted_params
params.permit(
:company_name,
......
......@@ -16,7 +16,7 @@ RSpec.describe Registrations::CompanyController do
context 'when not authenticated' do
let(:logged_in) { false }
it { is_expected.to redirect_to(new_trial_registration_url) }
it { is_expected.to redirect_to(new_user_session_path) }
end
context 'when authenticated' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment