Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
red-giant
dashboard
Commits
6610767b
Verified
Commit
6610767b
authored
3 years ago
by
Defendi Alberto
Browse files
Options
Downloads
Patches
Plain Diff
Add intl
parent
9b3ff54c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!19
Working email validation and hiding controller logic to InputField
,
!13
Basic form api and implement cookie entrypoint
Pipeline
#11659
failed
3 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/AuthUser/SignInForm/SignInForm.tsx
+6
-3
6 additions, 3 deletions
src/components/AuthUser/SignInForm/SignInForm.tsx
src/intl/en.json
+2
-1
2 additions, 1 deletion
src/intl/en.json
with
8 additions
and
4 deletions
src/components/AuthUser/SignInForm/SignInForm.tsx
+
6
−
3
View file @
6610767b
...
...
@@ -74,7 +74,7 @@ export const SignInForm: FC = () => {
}
}
label
=
{
intl
.
formatMessage
({
id
:
'
email
'
})
}
error
=
{
!!
errors
.
email
}
errorMessage
=
{
intl
.
formatMessage
({
id
:
'
error
'
})
}
errorMessage
=
{
intl
.
formatMessage
({
id
:
'
email-
error
'
})
}
/>
<
InputField
...
...
@@ -83,11 +83,14 @@ export const SignInForm: FC = () => {
rules
=
{
{
minLength
:
8
,
maxLength
:
60
,
required
:
{
value
:
true
,
message
:
'
You must enter your name
'
},
required
:
{
value
:
true
,
message
:
intl
.
formatMessage
({
id
:
'
password
'
}),
},
}
}
label
=
{
intl
.
formatMessage
({
id
:
'
password
'
})
}
error
=
{
!!
errors
.
password
}
errorMessage
=
{
intl
.
formatMessage
({
id
:
'
error
'
})
}
errorMessage
=
{
intl
.
formatMessage
({
id
:
'
password-
error
'
})
}
/>
<
Button
...
...
This diff is collapsed.
Click to expand it.
src/intl/en.json
+
2
−
1
View file @
6610767b
{
"email"
:
"Email address"
,
"password"
:
"Password"
,
"error"
:
"Insert valid email address"
"email-error"
:
"Insert valid email address"
,
"password-error"
:
"Insert valid password"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment