Skip to content

Commit

Permalink
Update to redirect when already logged in (#1387)
Browse files Browse the repository at this point in the history
  • Loading branch information
martikat authored Nov 15, 2024
1 parent 6d5af1b commit b7e3065
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/users/omniauth_callbacks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
# This method is called by Devise after successful Gov One Login authentication
# @return [nil]
def openid_connect
redirect_to my_modules_path if user_signed_in?

if params['error'].present?
Rails.logger.error("Authentication error: #{params['error']}, #{params['error_description']}")
return error_redirect('Params errors present')
Expand Down

0 comments on commit b7e3065

Please # to comment.