delete account

This commit is contained in:
2023-05-29 01:48:46 +02:00
parent 21222abad4
commit 33b38774df
6 changed files with 34 additions and 28 deletions

View File

@@ -24,8 +24,8 @@ const exportNotes = async () => {
}
const showDeleteAccountDialog = ref(false)
const deleteAccount = () => {
console.log('delete account')
const deleteAccount = async () => {
await user.value?.delete()
}
const showEncryptionDialog = ref(false)
@@ -71,7 +71,7 @@ const toggleEncryption = async () => {
<div>{{ user?.email }}</div>
</div>
<div class="w-full flex-row sm:flex">
<div class="font-bold sm:w-4/12">Verified</div>
<div class="font-bold sm:w-4/12">Account status</div>
<div class="col-auto">
<UIBadge :color="user?.emailVerified ? 'success' : 'warning'">
{{ user?.emailVerified ? 'Verified' : 'Not yet verified' }}