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 5555 name =" username"
5656 id =" username"
5757 ref =" usernameInput"
58- @input =" clearUsernameValidity "
58+ @input =" usernameInput.value?.setCustomValidity('') "
5959 @keydown.enter =" passwordInput.focus()"
6060 class =" w-full"
6161 placeholder =" name@company.com" required />
6666 v-model =" password"
6767 ref =" passwordInput"
6868 autocomplete =" current-password"
69- @input =" clearPasswordValidity "
69+ @input =" passwordInput.value?.setCustomValidity('') "
7070 @keydown.enter =" login"
7171 :type =" !showPw ? 'password': 'text'" name =" password" id =" password" placeholder =" ••••••••" class =" w-full" required >
7272 <template #rightIcon >
@@ -162,14 +162,6 @@ const backgroundPosition = computed(() => {
162162 return coreStore .config ? .loginBackgroundPosition || ' 1/2' ;
163163});
164164
165- function clearPasswordValidity () {
166- passwordInput .value ? .setCustomValidity (' test' )
167- }
168-
169- function clearUsernameValidity () {
170- usernameInput .value ? .setCustomValidity (' test' )
171- }
172-
173165onBeforeMount (() => {
174166 if (localStorage .getItem (' isAuthorized' ) === ' true' ) {
175167 // if route has next param, redirect
You can’t perform that action at this time.
0 commit comments