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
REACT_APP_AWS_USER_POOL_ID = us-east-1_
c1uad9xyt
REACT_APP_AWS_CLIENT_ID = 4
isv4m9h8q29b7a8m87gkath31
REACT_APP_AWS_USER_POOL_ID = us-east-1_
p1wF07t7u
REACT_APP_AWS_CLIENT_ID = 4
2v8g8dtbjgvnutg4t7sjp604m
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 = {
const
dataRole
=
{
Name
:
"
custom:role
"
,
Value
:
"
USER
"
,
Value
:
"
ADMIN
"
,
};
const
attributeEmail
=
new
CognitoUserAttribute
(
dataEmail
);
const
attributePhoneNumber
=
new
CognitoUserAttribute
(
dataPhoneNumber
);
...
...
src/services/ForgotPassword.js
View file @
a76888b1
...
...
@@ -111,7 +111,7 @@ export default () => {
value
=
{
email
}
onChange
=
{(
e
)
=>
setEmail
(
e
.
target
.
value
)}
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
>
<
/FormGroup
>
<
div
className
=
"
text-center
"
>
...
...
src/services/Signin.js
View file @
a76888b1
...
...
@@ -128,9 +128,15 @@ export default () => {
<
i
className
=
"
ni ni-email-83
"
/>
<
/InputGroupText
>
<
/InputGroupAddon
>
<
Input
placeholder
=
"
Example@company.com
"
type
=
"
text
"
value
=
{
email
}
onChange
=
{(
e
)
=>
setEmail
(
e
.
target
.
value
)}
/
>
<
FormFeedback
invalid
>
{
validEmail
?
"
Không đúng định dạng email
"
:
""
}
<
/FormFeedback
>
<
Input
required
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
>
<
/FormGroup
>
<
FormGroup
id
=
"
password
"
>
...
...
@@ -141,6 +147,7 @@ export default () => {
<
/InputGroupText
>
<
/InputGroupAddon
>
<
Input
required
placeholder
=
"
Mật khẩu
"
type
=
"
password
"
autoComplete
=
"
off
"
...
...
src/services/Signup.js
View file @
a76888b1
...
...
@@ -106,7 +106,7 @@ export default () => {
<
Col
lg
=
{
5
}
>
<
Card
className
=
"
bg-secondary shadow border-0
"
>
<
CardHeader
>
<
h5
className
=
"
text-center text-primary
"
>
Sign
up
<
/h5
>
<
h5
className
=
"
text-center text-primary
"
>
Đă
ng
k
í
t
à
i
kho
ả
n
<
/h5
>
<
/CardHeader
>
<
CardBody
className
=
"
px-lg-5 py-lg-5
"
>
<
Form
role
=
"
form
"
onSubmit
=
{
onHandleSignUp
}
>
...
...
@@ -119,12 +119,13 @@ export default () => {
<
/InputGroupText
>
<
/InputGroupAddon
>
<
Input
placeholder
=
"
Email
"
type
=
"
text
"
required
placeholder
=
"
Example@company.com
"
type
=
"
email
"
value
=
{
email
}
onChange
=
{(
e
)
=>
setEmail
(
e
.
target
.
value
)}
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
>
<
/FormGroup
>
...
...
@@ -136,12 +137,17 @@ export default () => {
<
/InputGroupText
>
<
/InputGroupAddon
>
<
Input
placeholder
=
"
Password
"
required
placeholder
=
"
Mật khẩu
"
type
=
"
password
"
autoComplete
=
"
off
"
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
>
<
/FormGroup
>
<
FormGroup
id
=
"
confirmPassword
"
>
...
...
@@ -152,13 +158,15 @@ export default () => {
<
/InputGroupText
>
<
/InputGroupAddon
>
<
Input
placeholder
=
"
Confirm Password
"
required
placeholder
=
"
Xác nhận mật khẩu
"
type
=
"
password
"
autoComplete
=
"
off
"
value
=
{
confirmPassword
}
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
>
<
/FormGroup
>
<
div
className
=
"
text-center
"
>
...
...
@@ -167,7 +175,7 @@ export default () => {
color
=
"
primary
"
type
=
"
submit
"
>
Create
account
T
ạ
o
t
à
i
kho
ả
n
<
/Button
>
<
/div
>
<
/Form
>
...
...
@@ -176,12 +184,12 @@ export default () => {
<
Row
className
=
"
mt-3
"
>
<
Col
className
=
"
d-flex justify-content-start align-items-center
"
>
<
small
className
=
"
text-light mr-2
"
>
Already
have
an
account
?
B
ạ
n
đã
c
ó
t
à
i
kho
ả
n
?
<
/small
>
<
Link
to
=
{
Routes
.
Signin
.
path
}
>
<
small
className
=
"
text-primary
"
>
Login
Đă
ng
nh
ậ
p
<
/small
>
<
/Link
>
<
/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