Skip to content

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

Skip adding users if no email service

Maidul Islamfb1f93a3c0f7
diff --git a/frontend/src/pages/signup.tsx b/frontend/src/pages/signup.tsx
index 298fc95364..1f1099c7b8 100644
--- a/frontend/src/pages/signup.tsx
+++ b/frontend/src/pages/signup.tsx
@@ -71,11 +71,17 @@ export default function SignUp() {
}
};
- // when email service is not configured, skip step 2
+ // when email service is not configured, skip step 2 and 5
useEffect(() => {
if (!serverDetails?.emailConfigured && step === 2){
incrementStep()
}
+
+ if (!serverDetails?.emailConfigured && step === 5){
+ getWorkspaces().then((userWorkspaces)=>{
+ router.push(`/dashboard/${userWorkspaces[0]._id}`);
+ });
+ }
}, [step]);
return (
@@ -121,9 +127,7 @@ export default function SignUp() {
password={password}
name={`${firstName} ${lastName}`}
/>
- ) : (
- <TeamInviteStep />
- )}
+ ) : (serverDetails?.emailConfigured ? <TeamInviteStep /> : "")}
</form>
</div>
</div>