Cleaned component
This commit is contained in:
parent
25ba54c8ac
commit
9c244e980c
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<Modal @modal:close="() => emit('close')" :modal-width="400" :modal-height="300" :is-resizable="false">
|
<Modal :isModalOpen="true" :modal-width="400" :modal-height="300" :is-resizable="false" @modal:close="() => emit('close')">
|
||||||
<template #modalHeader>
|
<template #modalHeader>
|
||||||
<h3 class="m-0 font-medium shrink-0 text-white">Reset Password</h3>
|
<h3 class="m-0 font-medium shrink-0 text-white">Reset Password</h3>
|
||||||
</template>
|
</template>
|
||||||
@ -23,17 +23,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { resetPassword } from '@/services/authentication'
|
import { resetPassword } from '@/services/authentication'
|
||||||
import { useGameStore } from '@/stores/gameStore'
|
|
||||||
import Modal from '@/components/utilities/Modal.vue'
|
import Modal from '@/components/utilities/Modal.vue'
|
||||||
|
|
||||||
const emit = defineEmits(['close'])
|
const emit = defineEmits(['close'])
|
||||||
|
|
||||||
const gameStore = useGameStore()
|
|
||||||
const email = ref('')
|
const email = ref('')
|
||||||
const resetPasswordError = ref('')
|
const resetPasswordError = ref('')
|
||||||
const isPasswordResetOpen = ref(false)
|
|
||||||
|
|
||||||
async function resetPasswordFunc() {
|
async function resetPasswordFunc() {
|
||||||
// check if email is valid
|
// check if email is valid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user