app/controllers/decidim/mpassid/omniauth_callbacks_controller.rb in decidim-mpassid-0.18.0 vs app/controllers/decidim/mpassid/omniauth_callbacks_controller.rb in decidim-mpassid-0.19.0
- old
+ new
@@ -230,13 +230,11 @@
)
end
def verified_email
@verified_email ||= begin
- if Decidim::Mpassid.auto_email_domain
- domain = Decidim::Mpassid.auto_email_domain
- "mpassid-#{person_identifier_digest}@#{domain}"
- end
+ domain = Decidim::Mpassid.auto_email_domain || current_organization.host
+ "mpassid-#{person_identifier_digest}@#{domain}"
end
end
def saml_attributes
@saml_attributes ||= oauth_hash[:extra][:saml_attributes]