Commit 242371e3 by Ravindra Kanojiya
2 parents 0e19f79e 9618e81f
...@@ -224,7 +224,7 @@ const Signup = props => { ...@@ -224,7 +224,7 @@ const Signup = props => {
onChange={handleChange} onChange={handleChange}
onBlur={handleBlur} onBlur={handleBlur}
value={values.confirmPassword} value={values.confirmPassword}
placeholder="Enter password" placeholder="Re-enter password"
/> />
{errors.confirmPassword && touched.confirmPassword && <span className="form-error">{errors.confirmPassword}</span>} {errors.confirmPassword && touched.confirmPassword && <span className="form-error">{errors.confirmPassword}</span>}
</div> </div>
...@@ -268,7 +268,7 @@ const Signup = props => { ...@@ -268,7 +268,7 @@ const Signup = props => {
{errors.termsConditions && touched.termsConditions && <span className="form-error">{errors.termsConditions}</span>} {errors.termsConditions && touched.termsConditions && <span className="form-error">{errors.termsConditions}</span>}
</div> </div>
{isOtpSent && ( {isOtpSent && (
// true // true isOtpSent
<> <>
<div className="input-group"> <div className="input-group">
{/* <label> {/* <label>
...@@ -285,7 +285,7 @@ const Signup = props => { ...@@ -285,7 +285,7 @@ const Signup = props => {
<OtpTimer <OtpTimer
initialTime={30} initialTime={30}
role={props.type} role={props.type}
userData={{ mobileNo: values.mobile, name: values.fullname, email: values.email, password: values.password }} userData={{ mobile: values.mobile, name: values.fullname, email: values.email, password: values.password }}
/> />
</div> </div>
<div> <div>
......
...@@ -114,7 +114,7 @@ export const registerEndUser = async vendorData => { ...@@ -114,7 +114,7 @@ export const registerEndUser = async vendorData => {
identifier: vendorData.email, identifier: vendorData.email,
password: vendorData.password password: vendorData.password
}); });
console.log("jwt", authUser); console.log("jwt end user", authUser);
const config = { const config = {
headers: { headers: {
Authorization: `Bearer ${authUser.data.jwt}`, Authorization: `Bearer ${authUser.data.jwt}`,
...@@ -132,6 +132,7 @@ export const registerEndUser = async vendorData => { ...@@ -132,6 +132,7 @@ export const registerEndUser = async vendorData => {
}; };
const response = await axios.post(`${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/end-users`, data, config); const response = await axios.post(`${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/end-users`, data, config);
console.log("response end user", response)
return response; return response;
}; };
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!