Fix login bug. Improve reservations

This commit is contained in:
2024-05-21 16:32:31 -04:00
parent 737de91bbc
commit cd692a6f3b
10 changed files with 103 additions and 81 deletions

View File

@@ -30,8 +30,8 @@
filled
></q-input>
<q-btn
type="submit"
@click="login(email, password)"
type="button"
@click="doLogin"
label="Login"
color="primary"
></q-btn>
@@ -44,7 +44,7 @@
></q-btn> -->
</q-form>
</q-card-section>
<q-card-section><GoogleOauthComponent /></q-card-section>
<!-- <q-card-section><GoogleOauthComponent /></q-card-section> -->
</q-card>
</q-page>
</q-page-container>
@@ -69,8 +69,12 @@
<script setup lang="ts">
import { ref } from 'vue';
import { login } from 'boot/appwrite';
import GoogleOauthComponent from 'src/components/GoogleOauthComponent.vue';
// import GoogleOauthComponent from 'src/components/GoogleOauthComponent.vue';
const email = ref('');
const password = ref('');
const doLogin = async () => {
login(email.value, password.value);
};
</script>