Skip to content

Commit 6403d1b

Browse files
committed
remove SessionsController#new
1 parent c012c87 commit 6403d1b

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

app/controllers/sessions_controller.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
#
1111
# @see https://github.com/omniauth/omniauth
1212
class SessionsController < ApplicationController
13-
# Redirect the user to Calnet for authentication
14-
def new
15-
redirect_args = { origin: params[:url] || root_path }.to_query
16-
redirect_to "/auth/calnet?#{redirect_args}"
17-
end
1813

1914
# Generate a new user session using data returned from a valid Calnet login
2015
def callback

spec/support/calnet_helper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ def without_redirects
8585

8686
def log_in_with_omniauth(auth_hash)
8787
OmniAuth.config.mock_auth[:calnet] = auth_hash
88-
without_redirects { do_get login_path }
8988

9089
Rails.application.env_config['omniauth.auth'] = auth_hash
9190
do_get omniauth_callback_path(:calnet)

0 commit comments

Comments
 (0)