Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: more claudy

=39658e932b77
diff --git a/backend/src/ee/services/saml-config/saml-config-service.ts b/backend/src/ee/services/saml-config/saml-config-service.ts
index 7452453074..f6b24789c0 100644
--- a/backend/src/ee/services/saml-config/saml-config-service.ts
+++ b/backend/src/ee/services/saml-config/saml-config-service.ts
@@ -627,7 +627,7 @@ export const samlConfigServiceFactory = ({
newUser = await userDAL.create(
{
username: sanitizedEmail,
- email,
+ email: sanitizedEmail,
isEmailVerified: false,
firstName,
lastName,
diff --git a/backend/src/services/auth/auth-signup-service.ts b/backend/src/services/auth/auth-signup-service.ts
index d8ff331274..2025ed5759 100644
--- a/backend/src/services/auth/auth-signup-service.ts
+++ b/backend/src/services/auth/auth-signup-service.ts
@@ -237,9 +237,6 @@ export const authSignupServiceFactory = ({
throw new BadRequestError({ message: "Invalid token" });
}
- // Mark alias as verified
- await userAliasDAL.updateById(userAlias.id, { isEmailVerified: true });
-
// Update user-level verification flags based on auth method
const userUpdates: Record<string, boolean> = { isEmailVerified: true };
if (decodedToken.authMethod === AuthMethod.GOOGLE) {
@@ -254,6 +251,9 @@ export const authSignupServiceFactory = ({
}
user = await userDAL.transaction(async (tx) => {
+ // Mark alias as verified
+ await userAliasDAL.updateById(userAlias.id, { isEmailVerified: true }, tx);
+
if (userAlias?.orgId) {
await orgDAL.updateMembership(
{
diff --git a/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx b/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
index 35eca6db39..e182dfc29b 100644
--- a/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
+++ b/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
@@ -1,4 +1,4 @@
-import { useCallback, useMemo, useState } from "react";
+import { useCallback, useEffect, useMemo, useState } from "react";
import { Helmet } from "react-helmet";
import { useTranslation } from "react-i18next";
import { Link, useNavigate, useRouter, useSearch } from "@tanstack/react-router";
@@ -246,7 +246,7 @@ export const SelectOrgPage = () => {
// MFA pending from IdP redirect
// eslint-disable-next-line react-hooks/exhaustive-deps
- useMemo(() => {
+ useEffect(() => {
const defaultOrg = orgs?.find((o) => o.id === orgId);
if (mfaPending && defaultOrg) {
const storedMfaToken = sessionStorage.getItem(SessionStorageKeys.MFA_TEMP_TOKEN);
@@ -257,7 +257,7 @@ export const SelectOrgPage = () => {
setMfaSuccessCallback(() => () => handleSelectOrganization(defaultOrg));
}
}
- }, [mfaPending, orgs, orgId]);
+ }, [mfaPending, orgs?.length, orgId]);
const renderListContent = () => {
if (orgsLoading) {