Merge pull request #1879 from internetee/tara-key-fix

Fix CookieOverflow error using current Tara test keys
This commit is contained in:
Timo Võhmar 2021-03-11 15:57:20 +02:00 committed by GitHub
commit c521bc240e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 2 deletions

View file

@ -14,7 +14,7 @@ module Sso
# rubocop:disable Style/AndOr
def callback(user, registrar: true)
session[:omniauth_hash] = user_hash
session[:omniauth_hash] = user_hash.delete_if { |key, _| key == 'credentials' }
(show_error(registrar: registrar) and return) unless user
flash[:notice] = t(:signed_in_successfully)