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 242371e3
authored
2024-06-28 11:25:56 +0530
by
Ravindra Kanojiya
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
https://git.logicloop.io/jaymehta/zango-frontend
2 parents
0e19f79e
9618e81f
Hide 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 @
242371e
...
...
@@ -224,7 +224,7 @@ const Signup = props => {
onChange
=
{
handleChange
}
onBlur
=
{
handleBlur
}
value
=
{
values
.
confirmPassword
}
placeholder
=
"
E
nter password"
placeholder
=
"
Re-e
nter password"
/>
{
errors
.
confirmPassword
&&
touched
.
confirmPassword
&&
<
span
className
=
"form-error"
>
{
errors
.
confirmPassword
}
<
/span>
}
<
/div
>
...
...
@@ -268,7 +268,7 @@ const Signup = props => {
{
errors
.
termsConditions
&&
touched
.
termsConditions
&&
<
span
className
=
"form-error"
>
{
errors
.
termsConditions
}
<
/span>
}
<
/div
>
{
isOtpSent
&&
(
// true
// true
isOtpSent
<>
<
div
className
=
"input-group"
>
{
/* <label>
...
...
@@ -285,7 +285,7 @@ const Signup = props => {
<
OtpTimer
initialTime
=
{
30
}
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
>
...
...
redux/actions/userActions.js
View file @
242371e
...
...
@@ -114,7 +114,7 @@ export const registerEndUser = async vendorData => {
identifier
:
vendorData
.
email
,
password
:
vendorData
.
password
});
console
.
log
(
"jwt"
,
authUser
);
console
.
log
(
"jwt
end user
"
,
authUser
);
const
config
=
{
headers
:
{
Authorization
:
`Bearer
${
authUser
.
data
.
jwt
}
`
,
...
...
@@ -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
);
console
.
log
(
"response end user"
,
response
)
return
response
;
};
...
...
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