mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 06:26:27 +00:00
Fix: null null firstName and lastName allowed during signup
This commit is contained in:
@@ -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.
|
// Verifies if the information that the users entered (name, workspace) is there, and if the password matched the criteria.
|
||||||
const signupErrorCheck = async () => {
|
const signupErrorCheck = async () => {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
let errorCheck = false;
|
|
||||||
|
let errorCheck = await checkPassword({
|
||||||
|
password,
|
||||||
|
setErrors
|
||||||
|
});
|
||||||
|
|
||||||
if (!firstName) {
|
if (!firstName) {
|
||||||
setFirstNameError(true);
|
setFirstNameError(true);
|
||||||
errorCheck = true;
|
errorCheck = true;
|
||||||
@@ -89,11 +94,6 @@ export default function SignupInvite() {
|
|||||||
setLastNameError(false);
|
setLastNameError(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
errorCheck = await checkPassword({
|
|
||||||
password,
|
|
||||||
setErrors
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!errorCheck) {
|
if (!errorCheck) {
|
||||||
// Generate a random pair of a public and a private key
|
// Generate a random pair of a public and a private key
|
||||||
const pair = nacl.box.keyPair();
|
const pair = nacl.box.keyPair();
|
||||||
|
|||||||
Reference in New Issue
Block a user