mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 17:27:16 +00:00
Merge pull request #2567 from scott-ray-wilson/fix-unintentional-project-creation
Fix: Prevent Example Project Creation on SSO Signup When Joining Org
This commit is contained in:
@@ -176,12 +176,16 @@ export const UserInfoSSOStep = ({
|
|||||||
organizationId: orgId
|
organizationId: orgId
|
||||||
});
|
});
|
||||||
|
|
||||||
const project = await ProjectService.initProject({
|
// only create example project if not joining existing org
|
||||||
projectName: "Example Project"
|
if (!providerOrganizationName) {
|
||||||
});
|
const project = await ProjectService.initProject({
|
||||||
|
projectName: "Example Project"
|
||||||
|
});
|
||||||
|
|
||||||
|
localStorage.setItem("projectData.id", project.id);
|
||||||
|
}
|
||||||
|
|
||||||
localStorage.setItem("orgData.id", orgId);
|
localStorage.setItem("orgData.id", orgId);
|
||||||
localStorage.setItem("projectData.id", project.id);
|
|
||||||
|
|
||||||
setStep(2);
|
setStep(2);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user