From e5dcea67baafe0a826c6d01c0ba685ea761c4732 Mon Sep 17 00:00:00 2001 From: Mikk Romulus Date: Thu, 31 Oct 2024 10:23:48 +0200 Subject: [PATCH] fix: Show errors when auth ends up in failure --- app/controllers/users/omniauth_callbacks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index 0c3acacb..64498c2c 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -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