Skip to content

Commit 9da0c00

Browse files
committed
TT#174850 Trim leading, tailing whitespaces from login username
Note: I've also triming spaces for password, because it can be also copy-pased from somewhere. Change-Id: I84a8f604f115909ef7fe51f98609a27851ce3faf
1 parent 0c394be commit 9da0c00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/CscPageLogin.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<q-card-section>
3232
<form>
3333
<csc-input
34-
v-model="username"
34+
v-model.trim="username"
3535
class="q-mb-sm"
3636
type="text"
3737
max-length="128"
@@ -42,15 +42,15 @@
4242
@keyup.enter="login()"
4343
>
4444
<template
45-
slot="prepend"
45+
v-slot:prepend
4646
>
4747
<q-icon
4848
name="person"
4949
/>
5050
</template>
5151
</csc-input>
5252
<csc-input-password
53-
v-model="password"
53+
v-model.trim="password"
5454
max-length="32"
5555
:label="$t('Password')"
5656
:disable="loginRequesting"

0 commit comments

Comments
 (0)