From 7c05b7326af47d904492a4662f79a9f010127be7 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 18 Feb 2023 14:16:34 -0500 Subject: [PATCH] test --- server/models/helpers/AuthenticationHelper.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/models/helpers/AuthenticationHelper.ts b/server/models/helpers/AuthenticationHelper.ts index 27b49d33b..e910aa955 100644 --- a/server/models/helpers/AuthenticationHelper.ts +++ b/server/models/helpers/AuthenticationHelper.ts @@ -22,17 +22,17 @@ export default class AuthenticationHelper { return false; } - // If no team return all possible authentication providers. - if (!team) { - return true; - } - // Guest sign-in is an exception as it does not have an authentication // provider using passport, instead it exists as a boolean option. if (config.id === "email") { return team?.emailSigninEnabled; } + // If no team return all possible authentication providers except email. + if (!team) { + return true; + } + const authProvider = find(team.authenticationProviders, { name: config.id, });