Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPS Observation App DEPRECATED
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
Container registry
Model registry
Operate
Environments
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
VIPS
VIPS Observation App DEPRECATED
Commits
00c7436c
Commit
00c7436c
authored
1 year ago
by
Lene Wasskog
Browse files
Options
Downloads
Patches
Plain Diff
feat: Ensure username is not autocapitalized at login
parent
078f6a5a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/LoginSystem.vue
+8
-7
8 additions, 7 deletions
src/components/LoginSystem.vue
with
8 additions
and
7 deletions
src/components/LoginSystem.vue
+
8
−
7
View file @
00c7436c
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<form
class=
"my-2 my-lg-0"
>
<form
class=
"my-2 my-lg-0"
>
<div
class=
"form-floating mb-3"
>
<div
class=
"form-floating mb-3"
>
<input
id=
"username"
type=
"text"
class=
"form-control"
v-model=
"username"
@
keyup.enter=
"handleLogin()"
/>
<input
id=
"username"
type=
"text"
class=
"form-control"
v-model=
"username"
@
keyup.enter=
"handleLogin()"
autocapitalize=
"none"
/>
<label
for=
"username"
>
{{
this
.
$i18n
.
t
(
"
login.username.field.placeholder
"
)
}}
</label>
<label
for=
"username"
>
{{
this
.
$i18n
.
t
(
"
login.username.field.placeholder
"
)
}}
</label>
</div>
</div>
<div
class=
"form-floating mb-3"
>
<div
class=
"form-floating mb-3"
>
...
@@ -50,22 +50,23 @@
...
@@ -50,22 +50,23 @@
<label
for=
"password"
>
{{
this
.
$i18n
.
t
(
"
login.pwd.field.placeholder
"
)
}}
</label>
<label
for=
"password"
>
{{
this
.
$i18n
.
t
(
"
login.pwd.field.placeholder
"
)
}}
</label>
</div>
</div>
<div
class=
"form-group mb-3
floa
t-end"
>
<div
class=
"form-group mb-3
justify-conten
t-end"
>
<router-link
to=
"/RegisterUserForm"
class=
"btn btn-warning"
onclick=
"$('.offcanvas-collapse').toggleClass('open')"
>
{{
$t
(
"
registeruser.button.label
"
)
}}
</router-link>
<router-link
to=
"/RegisterUserForm"
class=
"btn btn-warning"
onclick=
"$('.offcanvas-collapse').toggleClass('open')"
>
{{
$t
(
"
registeruser.button.label
"
)
}}
</router-link>
<button
class=
"btn btn-primary ms-2"
type=
"button"
@
click=
"handleLogin()"
@
keyup.enter=
"handleLogin()"
>
<button
class=
"btn btn-primary ms-2"
type=
"button"
@
click=
"handleLogin()"
@
keyup.enter=
"handleLogin()"
>
{{
$t
(
"
login.button.label
"
)
}}
{{
$t
(
"
login.button.label
"
)
}}
</button>
</button>
</div>
</div>
<div
v-show=
"!showForgottenPasswordForm && !showForgottenPasswordSubmitSuccessMsg"
class=
"form-group"
@
click=
"showForgottenPasswordForm=true; submitFailed=false; errorMessage=undefined;"
>
<div
class=
"form-group mb-3 justify-content-end"
v-show=
"!showForgottenPasswordForm && !showForgottenPasswordSubmitSuccessMsg"
@
click=
"showForgottenPasswordForm=true; submitFailed=false; errorMessage=undefined;"
>
<a
href=
"#"
class=
"card-link"
>
{{
$t
(
"
login.forgotpassword.label
"
)
}}
</a>
<a
href=
"#"
class=
"card-link"
>
{{
$t
(
"
login.forgotpassword.label
"
)
}}
</a>
</div>
</div>
<div
v-show=
"showForgottenPasswordForm"
>
<div
v-show=
"showForgottenPasswordForm"
>
<h4>
{{
$t
(
"
login.forgotpassword.label
"
)
}}
<a
href=
"#"
@
click.prevent=
"showForgottenPasswordForm=false"
>
Lukk
</a></h4>
<h4>
{{
$t
(
"
login.forgotpassword.label
"
)
}}
<a
href=
"#"
@
click.prevent=
"showForgottenPasswordForm=false"
>
Lukk
</a></h4>
{{
$t
(
"
login.forgotpassword.description
"
)
}}
<p>
{{
$t
(
"
login.forgotpassword.description
"
)
}}
</p>
<div
class=
"form-group"
>
<div
class=
"form-floating mb-3"
>
<input
type=
"email"
class=
"form-control"
v-model=
"email"
:placeholder=
"$t('login.forgotpassword.field.placeholder')"
/>
<input
id=
"email"
type=
"email"
class=
"form-control"
v-model=
"email"
:placeholder=
"$t('login.forgotpassword.field.placeholder')"
/>
<label
for=
"email"
>
{{
$t
(
'
login.forgotpassword.field.placeholder
'
)
}}
</label>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group
mb-3
"
>
<button
class=
"btn btn-primary"
type=
"button"
v-on:click=
"handleForgottenPassword()"
>
<button
class=
"btn btn-primary"
type=
"button"
v-on:click=
"handleForgottenPassword()"
>
{{
$t
(
"
login.forgotpassword.button.label
"
)
}}
{{
$t
(
"
login.forgotpassword.button.label
"
)
}}
</button>
</button>
...
...
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