Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
A
Aqbits Trace Code
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
Mai Thanh Cong
Aqbits Trace Code
Commits
a76888b1
Commit
a76888b1
authored
Jul 08, 2021
by
Mai Thanh Cong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change text in signup
parent
367360ca
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
18 deletions
+33
-18
.env
.env
+2
-2
src/services/AuthServices.js
src/services/AuthServices.js
+1
-1
src/services/ForgotPassword.js
src/services/ForgotPassword.js
+1
-1
src/services/Signin.js
src/services/Signin.js
+10
-3
src/services/Signup.js
src/services/Signup.js
+19
-11
No files found.
.env
View file @
a76888b1
#config
#config
REACT_APP_AWS_USER_POOL_ID = us-east-1_
c1uad9xyt
REACT_APP_AWS_USER_POOL_ID = us-east-1_
p1wF07t7u
REACT_APP_AWS_CLIENT_ID = 4
isv4m9h8q29b7a8m87gkath31
REACT_APP_AWS_CLIENT_ID = 4
2v8g8dtbjgvnutg4t7sjp604m
REACT_APP_BASE_URL_AQBITS_TRACE_CODE = https://f26svz60d8.execute-api.us-east-1.amazonaws.com/api
REACT_APP_BASE_URL_AQBITS_TRACE_CODE = https://f26svz60d8.execute-api.us-east-1.amazonaws.com/api
\ No newline at end of file
src/services/AuthServices.js
View file @
a76888b1
...
@@ -33,7 +33,7 @@ export const authServices = {
...
@@ -33,7 +33,7 @@ export const authServices = {
const
dataRole
=
{
const
dataRole
=
{
Name
:
"
custom:role
"
,
Name
:
"
custom:role
"
,
Value
:
"
USER
"
,
Value
:
"
ADMIN
"
,
};
};
const
attributeEmail
=
new
CognitoUserAttribute
(
dataEmail
);
const
attributeEmail
=
new
CognitoUserAttribute
(
dataEmail
);
const
attributePhoneNumber
=
new
CognitoUserAttribute
(
dataPhoneNumber
);
const
attributePhoneNumber
=
new
CognitoUserAttribute
(
dataPhoneNumber
);
...
...
src/services/ForgotPassword.js
View file @
a76888b1
...
@@ -111,7 +111,7 @@ export default () => {
...
@@ -111,7 +111,7 @@ export default () => {
value
=
{
email
}
value
=
{
email
}
onChange
=
{(
e
)
=>
setEmail
(
e
.
target
.
value
)}
onChange
=
{(
e
)
=>
setEmail
(
e
.
target
.
value
)}
invalid
=
{
validEmail
}
/
>
invalid
=
{
validEmail
}
/
>
<
FormFeedback
className
=
"
bg-transparent shadow-0
"
>
{
validEmail
?
"
Please input valid
email
"
:
false
}
<
/FormFeedback
>
<
FormFeedback
className
=
"
bg-transparent shadow-0
"
>
{
validEmail
?
"
Không đúng định dạng
email
"
:
false
}
<
/FormFeedback
>
<
/InputGroup
>
<
/InputGroup
>
<
/FormGroup
>
<
/FormGroup
>
<
div
className
=
"
text-center
"
>
<
div
className
=
"
text-center
"
>
...
...
src/services/Signin.js
View file @
a76888b1
...
@@ -128,9 +128,15 @@ export default () => {
...
@@ -128,9 +128,15 @@ export default () => {
<
i
className
=
"
ni ni-email-83
"
/>
<
i
className
=
"
ni ni-email-83
"
/>
<
/InputGroupText
>
<
/InputGroupText
>
<
/InputGroupAddon
>
<
/InputGroupAddon
>
<
Input
placeholder
=
"
Example@company.com
"
type
=
"
text
"
<
Input
value
=
{
email
}
onChange
=
{(
e
)
=>
setEmail
(
e
.
target
.
value
)}
/
>
required
<
FormFeedback
invalid
>
{
validEmail
?
"
Không đúng định dạng email
"
:
""
}
<
/FormFeedback
>
placeholder
=
"
Example@company.com
"
type
=
"
text
"
value
=
{
email
}
onChange
=
{(
e
)
=>
setEmail
(
e
.
target
.
value
)}
invalid
=
{
validEmail
}
/
>
<
FormFeedback
className
=
"
bg-transparent shadow-0
"
>
{
validEmail
?
"
Không đúng định dạng email
"
:
""
}
<
/FormFeedback
>
<
/InputGroup
>
<
/InputGroup
>
<
/FormGroup
>
<
/FormGroup
>
<
FormGroup
id
=
"
password
"
>
<
FormGroup
id
=
"
password
"
>
...
@@ -141,6 +147,7 @@ export default () => {
...
@@ -141,6 +147,7 @@ export default () => {
<
/InputGroupText
>
<
/InputGroupText
>
<
/InputGroupAddon
>
<
/InputGroupAddon
>
<
Input
<
Input
required
placeholder
=
"
Mật khẩu
"
placeholder
=
"
Mật khẩu
"
type
=
"
password
"
type
=
"
password
"
autoComplete
=
"
off
"
autoComplete
=
"
off
"
...
...
src/services/Signup.js
View file @
a76888b1
...
@@ -106,7 +106,7 @@ export default () => {
...
@@ -106,7 +106,7 @@ export default () => {
<
Col
lg
=
{
5
}
>
<
Col
lg
=
{
5
}
>
<
Card
className
=
"
bg-secondary shadow border-0
"
>
<
Card
className
=
"
bg-secondary shadow border-0
"
>
<
CardHeader
>
<
CardHeader
>
<
h5
className
=
"
text-center text-primary
"
>
Sign
up
<
/h5
>
<
h5
className
=
"
text-center text-primary
"
>
Đă
ng
k
í
t
à
i
kho
ả
n
<
/h5
>
<
/CardHeader
>
<
/CardHeader
>
<
CardBody
className
=
"
px-lg-5 py-lg-5
"
>
<
CardBody
className
=
"
px-lg-5 py-lg-5
"
>
<
Form
role
=
"
form
"
onSubmit
=
{
onHandleSignUp
}
>
<
Form
role
=
"
form
"
onSubmit
=
{
onHandleSignUp
}
>
...
@@ -119,12 +119,13 @@ export default () => {
...
@@ -119,12 +119,13 @@ export default () => {
<
/InputGroupText
>
<
/InputGroupText
>
<
/InputGroupAddon
>
<
/InputGroupAddon
>
<
Input
<
Input
placeholder
=
"
Email
"
required
type
=
"
text
"
placeholder
=
"
Example@company.com
"
type
=
"
email
"
value
=
{
email
}
value
=
{
email
}
onChange
=
{(
e
)
=>
setEmail
(
e
.
target
.
value
)}
onChange
=
{(
e
)
=>
setEmail
(
e
.
target
.
value
)}
invalid
=
{
validEmail
}
/
>
invalid
=
{
validEmail
}
/
>
<
FormFeedback
className
=
"
bg-transparent shadow-0
"
>
{
validEmail
?
"
Please input validate
email
"
:
false
}
<
/FormFeedback
>
<
FormFeedback
className
=
"
bg-transparent shadow-0
"
>
{
validEmail
?
"
Không đúng định dạng
email
"
:
false
}
<
/FormFeedback
>
<
/InputGroup
>
<
/InputGroup
>
<
/FormGroup
>
<
/FormGroup
>
...
@@ -136,12 +137,17 @@ export default () => {
...
@@ -136,12 +137,17 @@ export default () => {
<
/InputGroupText
>
<
/InputGroupText
>
<
/InputGroupAddon
>
<
/InputGroupAddon
>
<
Input
<
Input
placeholder
=
"
Password
"
required
placeholder
=
"
Mật khẩu
"
type
=
"
password
"
type
=
"
password
"
autoComplete
=
"
off
"
autoComplete
=
"
off
"
value
=
{
password
}
value
=
{
password
}
onChange
=
{(
e
)
=>
setPassword
(
e
.
target
.
value
)}
/
>
onChange
=
{(
e
)
=>
setPassword
(
e
.
target
.
value
)}
invalid
=
{
checkPassword
}
/
>
<
FormFeedback
>
{
checkPassword
?
"
Mật khẩu không trùng nhau
"
:
false
}
<
/FormFeedback
>
<
/InputGroup
>
<
/InputGroup
>
<
/FormGroup
>
<
/FormGroup
>
<
FormGroup
id
=
"
confirmPassword
"
>
<
FormGroup
id
=
"
confirmPassword
"
>
...
@@ -152,13 +158,15 @@ export default () => {
...
@@ -152,13 +158,15 @@ export default () => {
<
/InputGroupText
>
<
/InputGroupText
>
<
/InputGroupAddon
>
<
/InputGroupAddon
>
<
Input
<
Input
placeholder
=
"
Confirm Password
"
required
placeholder
=
"
Xác nhận mật khẩu
"
type
=
"
password
"
type
=
"
password
"
autoComplete
=
"
off
"
autoComplete
=
"
off
"
value
=
{
confirmPassword
}
value
=
{
confirmPassword
}
onChange
=
{(
e
)
=>
setConfirmPassword
(
e
.
target
.
value
)}
onChange
=
{(
e
)
=>
setConfirmPassword
(
e
.
target
.
value
)}
invalid
=
{
checkPassword
}
/
>
/
>
<
FormFeedback
>
{
checkPassword
?
"
Please input match password
"
:
false
}
<
/FormFeedback
>
<
FormFeedback
>
{
checkPassword
?
"
Mật khẩu không trùng nhau
"
:
false
}
<
/FormFeedback
>
<
/InputGroup
>
<
/InputGroup
>
<
/FormGroup
>
<
/FormGroup
>
<
div
className
=
"
text-center
"
>
<
div
className
=
"
text-center
"
>
...
@@ -167,7 +175,7 @@ export default () => {
...
@@ -167,7 +175,7 @@ export default () => {
color
=
"
primary
"
color
=
"
primary
"
type
=
"
submit
"
type
=
"
submit
"
>
>
Create
account
T
ạ
o
t
à
i
kho
ả
n
<
/Button
>
<
/Button
>
<
/div
>
<
/div
>
<
/Form
>
<
/Form
>
...
@@ -176,12 +184,12 @@ export default () => {
...
@@ -176,12 +184,12 @@ export default () => {
<
Row
className
=
"
mt-3
"
>
<
Row
className
=
"
mt-3
"
>
<
Col
className
=
"
d-flex justify-content-start align-items-center
"
>
<
Col
className
=
"
d-flex justify-content-start align-items-center
"
>
<
small
className
=
"
text-light mr-2
"
>
<
small
className
=
"
text-light mr-2
"
>
Already
have
an
account
?
B
ạ
n
đã
c
ó
t
à
i
kho
ả
n
?
<
/small
>
<
/small
>
<
Link
<
Link
to
=
{
Routes
.
Signin
.
path
}
>
to
=
{
Routes
.
Signin
.
path
}
>
<
small
className
=
"
text-primary
"
>
<
small
className
=
"
text-primary
"
>
Login
Đă
ng
nh
ậ
p
<
/small
>
<
/small
>
<
/Link
>
<
/Link
>
<
/Col
>
<
/Col
>
...
...
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