Skip to content

Commit 0bcbabf

Browse files
authored
Merge pull request #276 from devforth/AdminForth/720
Admin forth/720
2 parents 5697a5e + 22d0826 commit 0bcbabf

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

adminforth/spa/src/views/LoginView.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
name="username"
5656
id="username"
5757
ref="usernameInput"
58-
oninput="setCustomValidity('')"
5958
@keydown.enter="passwordInput.focus()"
6059
class="w-full"
6160
placeholder="[email protected]" required />
@@ -66,7 +65,6 @@
6665
v-model="password"
6766
ref="passwordInput"
6867
autocomplete="current-password"
69-
oninput="setCustomValidity('')"
7068
@keydown.enter="login"
7169
:type="!showPw ? 'password': 'text'" name="password" id="password" placeholder="••••••••" class="w-full" required>
7270
<template #rightIcon>
@@ -185,16 +183,6 @@ onMounted(async () => {
185183
186184
187185
async function login() {
188-
189-
if (!username.value) {
190-
usernameInput.value.setCustomValidity(t('Please fill out this field.'));
191-
return;
192-
}
193-
if (!password.value) {
194-
passwordInput.value.setCustomValidity(t('Please fill out this field.'));
195-
return;
196-
}
197-
198186
if (inProgress.value) {
199187
return;
200188
}

0 commit comments

Comments
 (0)