Skip to content

Commit

Permalink
fix: Show errors when auth ends up in failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mromulus committed Oct 31, 2024
1 parent e178ac4 commit e5dcea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users/omniauth_callbacks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def sso
end

def failure
redirect_to new_user_session_path
redirect_to new_user_session_path, flash: { error: "Error from SSO: #{request.env['omniauth.error.type']}" }
end

private
Expand Down

0 comments on commit e5dcea6

Please sign in to comment.