File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 55
55
name =" username"
56
56
id =" username"
57
57
ref =" usernameInput"
58
- @input =" clearUsernameValidity "
58
+ @input =" usernameInput.value?.setCustomValidity('') "
59
59
@keydown.enter =" passwordInput.focus()"
60
60
class =" w-full"
61
61
placeholder =
" [email protected] " required />
66
66
v-model =" password"
67
67
ref =" passwordInput"
68
68
autocomplete =" current-password"
69
- @input =" clearPasswordValidity "
69
+ @input =" passwordInput.value?.setCustomValidity('') "
70
70
@keydown.enter =" login"
71
71
:type =" !showPw ? 'password': 'text'" name =" password" id =" password" placeholder =" ••••••••" class =" w-full" required >
72
72
<template #rightIcon >
@@ -162,14 +162,6 @@ const backgroundPosition = computed(() => {
162
162
return coreStore .config ? .loginBackgroundPosition || ' 1/2' ;
163
163
});
164
164
165
- function clearPasswordValidity () {
166
- passwordInput .value ? .setCustomValidity (' test' )
167
- }
168
-
169
- function clearUsernameValidity () {
170
- usernameInput .value ? .setCustomValidity (' test' )
171
- }
172
-
173
165
onBeforeMount (() => {
174
166
if (localStorage .getItem (' isAuthorized' ) === ' true' ) {
175
167
// if route has next param, redirect
You can’t perform that action at this time.
0 commit comments