email al inicio existe

This commit is contained in:
2023-03-06 17:01:32 +01:00
parent f717544e59
commit 3fd3f30ae1

View File

@@ -63,7 +63,7 @@
</template>
<script setup>
import { ref, computed } from "vue";
import { ref, computed, onMounted } from "vue";
import { useListaStore } from "../stores/lista.js";
import { useRouter } from "vue-router";
import { useQuasar } from "quasar";
@@ -84,8 +84,7 @@ const comprobarEmailVerified = computed(() => {
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
msgError.value = "Falta verificar el correo";
return false;
}
if (existe.length == 0) {
} else if (existe.length == 0 && usuarios.value?.length > 0) {
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
msgError.value = "El email no existe";
return false;
@@ -122,6 +121,10 @@ const btnLoginDisable = () => {
}
return false;
};
onMounted(() => {
recibeDatos();
});
</script>
<style scoped>