From 5e0ce7337679b21faadba26b0277b8927fb6b411 Mon Sep 17 00:00:00 2001 From: Matteo Matassoni <4108197+matax87@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:15:10 +0100 Subject: [PATCH] Bypass user email check for noi.community.app.test@opendatahub.com --- NOICommunity/AuthFeature/LoadUserInfoViewModel.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NOICommunity/AuthFeature/LoadUserInfoViewModel.swift b/NOICommunity/AuthFeature/LoadUserInfoViewModel.swift index 597e235..bbd7de7 100644 --- a/NOICommunity/AuthFeature/LoadUserInfoViewModel.swift +++ b/NOICommunity/AuthFeature/LoadUserInfoViewModel.swift @@ -78,7 +78,9 @@ final class LoadUserInfoViewModel { guard let userEmail = userInfo.email else { return false } - return userEmail == person.email || userEmail.hasSuffix("@dimension.it") + return userEmail == person.email || + userEmail == "noi.community.app.test@opendatahub.com" || + userEmail.hasSuffix("@dimension.it") } } .setFailureType(to: Error.self)