From 76220906a238a6e8ab76353eb56a739e93425f7f Mon Sep 17 00:00:00 2001 From: Max Bothe Date: Fri, 30 Nov 2018 10:10:27 +0100 Subject: [PATCH] Fix brand configuration if no single sign on is configured --- Common/Branding/Brand.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Branding/Brand.swift b/Common/Branding/Brand.swift index 3ecbfd66c..ec505d33d 100644 --- a/Common/Branding/Brand.swift +++ b/Common/Branding/Brand.swift @@ -68,7 +68,7 @@ public struct Brand: Decodable { self.host = try container.decode(String.self, forKey: .host) self.imprintURL = try container.decodeURL(forKey: .imprintURL) self.privacyURL = try container.decodeURL(forKey: .privacyURL) - self.singleSignOn = try container.decode(SingleSignOnConfiguration.self, forKey: .singleSignOn) + self.singleSignOn = try? container.decode(SingleSignOnConfiguration.self, forKey: .singleSignOn) self.copyrightName = try container.decode(String.self, forKey: .copyrightName) self.poweredByText = try container.decodeIfPresent(String.self, forKey: .poweredByText) self.colors = try container.decode(BrandColors.self, forKey: .colors)