From f892302e935323ac45c409995e74e7b9b236dce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Erik=20=C3=95unapuu?= Date: Fri, 2 Oct 2020 09:57:49 +0300 Subject: [PATCH] Fix error rendering on TARA controller --- app/controllers/sso/tara_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/sso/tara_controller.rb b/app/controllers/sso/tara_controller.rb index 1571f45b3..37c8ab608 100644 --- a/app/controllers/sso/tara_controller.rb +++ b/app/controllers/sso/tara_controller.rb @@ -15,7 +15,7 @@ module Sso # rubocop:disable Style/AndOr def callback(user, registrar: true) session[:omniauth_hash] = user_hash - (show error and return) unless user + (show_error(registrar: registrar) and return) unless user flash[:notice] = t(:signed_in_successfully) sign_in_and_redirect(registrar ? :registrar_user : :registrant_user, user)