mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Fix error rendering on TARA controller
This commit is contained in:
parent
3162d8cc57
commit
f892302e93
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue