Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
Easy Quest - Smart Recruitment Tool with AI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23 - J 36
Easy Quest - Smart Recruitment Tool with AI
Commits
b4557e66
Commit
b4557e66
authored
Jan 23, 2023
by
H.M.C. Nadunithara Wijerathne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f24ed5c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/components/SignUp.tsx
src/components/SignUp.tsx
+7
-2
No files found.
src/components/SignUp.tsx
View file @
b4557e66
...
...
@@ -32,13 +32,12 @@ const SignUp = () => {
const
onChangeCredentials
=
(
e
:
React
.
ChangeEvent
<
HTMLInputElement
>
)
=>
{
setCredentials
({
...
credentials
,
[
e
.
target
.
name
]:
e
.
target
.
value
});
};
const
onSumit
=
()
=>
{
if
(
credentials
.
password
!==
credentials
.
confrimPassword
)
{
return
setAlert
(
"
Passwords do not match
"
);
}
resetData
();
const
data
=
{
username
:
credentials
.
userName
,
passwords
:
[
...
...
@@ -50,6 +49,10 @@ const SignUp = () => {
keyup
:
keyupArray
.
current
,
};
console
.
log
(
"
DATA
"
,
data
);
resetData
();
fetch
(
"
http://localhost:3001/user/signup
"
,
{
method
:
"
POST
"
,
mode
:
"
cors
"
,
...
...
@@ -216,6 +219,7 @@ const SignUp = () => {
onChange=
{
onChangeCredentials
}
value=
{
credentials
.
confrimPassword
}
onKeyDown=
{
onKeyDown
}
onKeyUp=
{
onKeyUp
}
id=
"password-1"
/>
</
div
>
...
...
@@ -249,6 +253,7 @@ const SignUp = () => {
onChange=
{
onChangeCredentials
}
value=
{
credentials
.
twoFAPassword
}
onKeyDown=
{
onKeyDown
}
onKeyUp=
{
onKeyUp
}
id=
"password-2"
/>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment