Skip to content

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

Fix: `null` `null` firstName and lastName allowed during signup

Daniel Hougaard8ef250140718
diff --git a/frontend/src/pages/signupinvite.tsx b/frontend/src/pages/signupinvite.tsx
index 17ac5b4ff5..a0c2f24300 100644
--- a/frontend/src/pages/signupinvite.tsx
+++ b/frontend/src/pages/signupinvite.tsx
@@ -75,7 +75,12 @@ export default function SignupInvite() {
// Verifies if the information that the users entered (name, workspace) is there, and if the password matched the criteria.
const signupErrorCheck = async () => {
setIsLoading(true);
- let errorCheck = false;
+
+ let errorCheck = await checkPassword({
+ password,
+ setErrors
+ });
+
if (!firstName) {
setFirstNameError(true);
errorCheck = true;
@@ -89,11 +94,6 @@ export default function SignupInvite() {
setLastNameError(false);
}
- errorCheck = await checkPassword({
- password,
- setErrors
- });
-
if (!errorCheck) {
// Generate a random pair of a public and a private key
const pair = nacl.box.keyPair();