Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 9618e81f
authored
11 months ago
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
c45eea89
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
components/signup/Signup.js
redux/actions/userActions.js
components/signup/Signup.js
View file @
9618e81
...
@@ -222,7 +222,7 @@ const Signup = props => {
...
@@ -222,7 +222,7 @@ const Signup = props => {
onChange
=
{
handleChange
}
onChange
=
{
handleChange
}
onBlur
=
{
handleBlur
}
onBlur
=
{
handleBlur
}
value
=
{
values
.
confirmPassword
}
value
=
{
values
.
confirmPassword
}
placeholder
=
"
E
nter password"
placeholder
=
"
Re-e
nter 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
>
...
@@ -266,7 +266,7 @@ const Signup = props => {
...
@@ -266,7 +266,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>
...
@@ -283,7 +283,7 @@ const Signup = props => {
...
@@ -283,7 +283,7 @@ const Signup = props => {
<
OtpTimer
<
OtpTimer
initialTime
=
{
30
}
initialTime
=
{
30
}
role
=
{
props
.
type
}
role
=
{
props
.
type
}
userData
=
{{
mobile
No
:
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
>
...
...
This diff is collapsed.
Click to expand it.
redux/actions/userActions.js
View file @
9618e81
...
@@ -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
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment