diff --git a/app/controllers/users/sessions_controller.rb b/app/controllers/users/sessions_controller.rb index d9a4ad10..4ffebf7e 100644 --- a/app/controllers/users/sessions_controller.rb +++ b/app/controllers/users/sessions_controller.rb @@ -1,7 +1,7 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later class Users::SessionsController < Devise::SessionsController layout 'layouts/apified', only: :new - + respond_to :json, only: :new def new @theme = 'minimal' diff --git a/spec/requests/maintenance_spec.rb b/spec/requests/maintenance_spec.rb index 407558bc..0a79ef56 100644 --- a/spec/requests/maintenance_spec.rb +++ b/spec/requests/maintenance_spec.rb @@ -85,7 +85,7 @@ describe 'Maintenance Mode' do it 'allows sign_in.json' do get(:new, {maintenance_token: "#{token}", format: 'json'}) - expect(response.code).to eq '406' + expect(response.code).to eq '200' end end end