fix: trim trailling spaces in username

This commit is contained in:
Dmitry Shemin
2026-01-09 23:22:42 +07:00
committed by mayswind
parent 1691c320cc
commit 3b0b95ac4a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@
:disabled="show2faInput || loggingInByPassword || loggingInByOAuth2 || verifying" :disabled="show2faInput || loggingInByPassword || loggingInByOAuth2 || verifying"
:label="tt('Username')" :label="tt('Username')"
:placeholder="tt('Your username or email')" :placeholder="tt('Your username or email')"
v-model="username" v-model.trim="username"
@input="tempToken = ''" @input="tempToken = ''"
@keyup.enter="passwordInput?.focus()" @keyup.enter="passwordInput?.focus()"
/> />
+1 -1
View File
@@ -17,7 +17,7 @@
:disabled="loggingInByPassword || loggingInByOAuth2" :disabled="loggingInByPassword || loggingInByOAuth2"
:label="tt('Username')" :label="tt('Username')"
:placeholder="tt('Your username or email')" :placeholder="tt('Your username or email')"
v-model:value="username" v-model:value.trim="username"
@input="tempToken = ''" @input="tempToken = ''"
></f7-list-input> ></f7-list-input>
<f7-list-input <f7-list-input