Scheduling infrastructure for absolutely everyone.
fix: a new email can signin with any password once it's invited to a team (#11359)
Somay Chauhanab39c8f58191
diff --git a/packages/features/auth/lib/next-auth-options.ts b/packages/features/auth/lib/next-auth-options.tsindex ace33145df2..40d240b95f1 100644--- a/packages/features/auth/lib/next-auth-options.ts+++ b/packages/features/auth/lib/next-auth-options.ts@@ -143,7 +143,9 @@ const providers: Provider[] = [if (user.identityProvider !== IdentityProvider.CAL && !credentials.totpCode) {throw new Error(ErrorCode.ThirdPartyIdentityProviderEnabled);}-+ if (!user.password && user.identityProvider == IdentityProvider.CAL) {+ throw new Error(ErrorCode.IncorrectEmailPassword);+ }if (!user.password && user.identityProvider !== IdentityProvider.CAL && !credentials.totpCode) {throw new Error(ErrorCode.IncorrectEmailPassword);}