diff --git a/client/src/pages/SignUp.jsx b/client/src/pages/SignUp.jsx index 5b0086c..900c037 100644 --- a/client/src/pages/SignUp.jsx +++ b/client/src/pages/SignUp.jsx @@ -14,6 +14,9 @@ const SignUpNew = () => { const [name, setName] = useState(""); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); + const [confirmPassword, setconfirmPassword] = useState(""); + + const [avatar, setAvatar] = useState(null); const [avatarError, setAvatarError] = useState(null); @@ -39,6 +42,10 @@ const SignUpNew = () => { const handlePasswordChange = (e) => { setPassword(e.target.value); }; + const handleconfirmPassword = (e) => { + setconfirmPassword(e.target.value); + }; + const handleAvatarChange = (e) => { const file = e.target.files[0]; @@ -75,6 +82,7 @@ const SignUpNew = () => { formData.append("name", name); formData.append("email", email); formData.append("password", password); + formData.append("confirmPassword", confirmPassword); formData.append("avatar", avatar); formData.append("role", "general"); formData.append("isConsentGiven", isConsentGiven.toString()); @@ -261,6 +269,36 @@ const SignUpNew = () => { autoComplete="off" /> + {/* confirm password */} +
+ + + + + + +