Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
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
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
idatt2106-2024-07
frontend
Commits
91978c1b
Commit
91978c1b
authored
1 year ago
by
VIktorGrev
Browse files
Options
Downloads
Patches
Plain Diff
feat: Adding form validation loginform
parent
859ad409
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#278342
failed
1 year ago
Stage: install_dependencies
Stage: lint
Stage: build_project
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/BaseComponents/Menu.vue
+3
-0
3 additions, 0 deletions
src/components/BaseComponents/Menu.vue
src/components/Login/LoginForm.vue
+7
-0
7 additions, 0 deletions
src/components/Login/LoginForm.vue
with
10 additions
and
0 deletions
src/components/BaseComponents/Menu.vue
+
3
−
0
View file @
91978c1b
...
@@ -98,6 +98,9 @@ function toFeedback() {
...
@@ -98,6 +98,9 @@ function toFeedback() {
router
.
push
(
'
/feedback
'
)
router
.
push
(
'
/feedback
'
)
}
}
function
toFriends
()
{
router
.
push
(
'
/friends
'
)
}
function
toUserProfile
()
{
function
toUserProfile
()
{
router
.
push
(
'
/profile
'
)
router
.
push
(
'
/profile
'
)
...
...
This diff is collapsed.
Click to expand it.
src/components/Login/LoginForm.vue
+
7
−
0
View file @
91978c1b
...
@@ -32,7 +32,14 @@ const handleSubmit = async () => {
...
@@ -32,7 +32,14 @@ const handleSubmit = async () => {
console
.
log
(
emailRef
.
value
)
console
.
log
(
emailRef
.
value
)
console
.
log
(
passwordRef
.
value
)
console
.
log
(
passwordRef
.
value
)
formRef
.
value
.
classList
.
add
(
"
was-validated
"
)
formRef
.
value
.
classList
.
add
(
"
was-validated
"
)
const
form
=
formRef
.
value
;
if
(
!
form
.
checkValidity
())
{
return
;
}
const
loginUserPayload
:
LoginRequest
=
{
const
loginUserPayload
:
LoginRequest
=
{
email
:
emailRef
.
value
,
email
:
emailRef
.
value
,
password
:
passwordRef
.
value
password
:
passwordRef
.
value
...
...
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