1
0

fix(password): validate password before sending request to api

(cherry picked from commit eb95caf757c05f61d8bc705df62e595903e509d5)
This commit is contained in:
kolaente
2024-09-10 17:44:52 +02:00
parent 01a7a62541
commit 10edeafa46
3 changed files with 20 additions and 17 deletions

View File

@ -127,6 +127,7 @@ import Password from '@/components/input/Password.vue'
import {useAuthStore} from '@/stores/auth'
import {useConfigStore} from '@/stores/config'
import {validatePassword} from '@/helpers/validatePasswort'
const {t} = useI18n()
const authStore = useAuthStore()
@ -183,7 +184,7 @@ const validateUsername = useDebounceFn(() => {
const everythingValid = computed(() => {
return credentials.username !== '' &&
credentials.email !== '' &&
credentials.password !== '' &&
validatePassword(credentials.password) === true &&
emailValid.value &&
usernameValid.value
})